public void HasQualifyingStartMeetsExpectation(bool expectation)
        {
            var mockItem = new Mock <ILearningDelivery>();

            var handler    = new Mock <IValidationErrorHandler>(MockBehavior.Strict);
            var dateTimeQS = new Mock <IDateTimeQueryService>(MockBehavior.Strict);

            dateTimeQS
            .Setup(x => x.IsDateBetween(mockItem.Object.LearnStartDate, DateTime.Parse("2013-08-01"), DateTime.Parse("2014-07-31"), true))
            .Returns(expectation);

            var lEmpQS = new Mock <ILearnerEmploymentStatusQueryService>(MockBehavior.Strict);

            var sut    = new EmpStat_06Rule(handler.Object, dateTimeQS.Object, lEmpQS.Object);
            var result = sut.HasQualifyingStart(mockItem.Object);

            Assert.Equal(expectation, result);

            handler.VerifyAll();
            dateTimeQS.VerifyAll();
        }
        public void HasQualifyingStartMeetsExpectation(bool expectation)
        {
            // arrange
            var mockItem = new Mock <ILearningDelivery>();

            var handler   = new Mock <IValidationErrorHandler>(MockBehavior.Strict);
            var commonOps = new Mock <IProvideRuleCommonOperations>(MockBehavior.Strict);

            commonOps
            .Setup(x => x.HasQualifyingStart(mockItem.Object, DateTime.Parse("2013-08-01"), DateTime.Parse("2014-07-31")))
            .Returns(expectation);

            var sut = new EmpStat_06Rule(handler.Object, commonOps.Object);

            // act
            var result = sut.HasQualifyingStart(mockItem.Object);

            // assert
            Assert.Equal(expectation, result);

            handler.VerifyAll();
            commonOps.VerifyAll();
        }