Exemple #1
0
        public void CheckEmploymentStatusMeetsExpectation()
        {
            var handler    = new Mock <IValidationErrorHandler>(MockBehavior.Strict);
            var dateTimeQS = new Mock <IDateTimeQueryService>(MockBehavior.Strict);
            var lEmpQS     = new Mock <ILearnerEmploymentStatusQueryService>(MockBehavior.Strict);

            var sut = new EmpStat_19Rule(handler.Object, dateTimeQS.Object, lEmpQS.Object);

            sut.CheckEmploymentStatus(null, null);

            handler.VerifyAll();
            dateTimeQS.VerifyAll();
        }
Exemple #2
0
        public void CheckEmploymentStatusMeetsExpectation()
        {
            // arrange
            var handler      = new Mock <IValidationErrorHandler>(MockBehavior.Strict);
            var commonchecks = new Mock <IProvideRuleCommonOperations>(MockBehavior.Strict);

            var sut = new EmpStat_19Rule(handler.Object, commonchecks.Object);

            // act - unfortunately there isn't a 'does not throw'
            sut.CheckEmploymentStatus(null, null);

            // assert - so the best we can do is verify
            handler.VerifyAll();
            commonchecks.VerifyAll();
        }