using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using Pinwheel.SCM.AwardContexts; using Pinwheel.SCM.Awards; namespace Pinwheel.SCM.Rules { [TestClass] public class CheckinRuleTests { [TestMethod] public void Execute_bestows_sucessful_checkin_award() { var awardsService = new Mock(); awardsService .Expect(s => s.BestowAward(It.IsAny())) .Verifiable(); new CheckinRule() .Execute( new CheckinAwardContext { AwardService = awardsService.Object, User = new ScmUser() }); awardsService.VerifyAll(); } } }