public void InReceiptOfBenefitsWithNullEmploymentsReturnsFalse()
        {
            var lEmpQS = new Mock <ILearnerEmploymentStatusQueryService>(MockBehavior.Strict);

            lEmpQS
            .Setup(x => x.LearnerEmploymentStatusForDate(null, DateTime.Today))
            .Returns((ILearnerEmploymentStatus)null);

            var sut = new DerivedData_11Rule(lEmpQS.Object);

            var result = sut.InReceiptOfBenefits(null, DateTime.Today);

            Assert.False(result);
        }
Example #2
0
        public void InReceiptOfBenefitsWithNullEmploymentsReturnsFalse()
        {
            // arrange
            var commonOps = new Mock <IProvideRuleCommonOperations>(MockBehavior.Strict);

            commonOps
            .Setup(x => x.GetEmploymentStatusOn(DateTime.Today, null))
            .Returns((ILearnerEmploymentStatus)null);

            var sut = new DerivedData_11Rule(commonOps.Object);

            // act
            var result = sut.InReceiptOfBenefits(null, DateTime.Today);

            // assert
            Assert.False(result);
        }