public void valid_Allvalues_ReturnsTrue() { //arrange var dd28RuleFundModelAndEmpStatEmpCodeCheck = new DD28RuleCriteria2(_mock.Object); var param = new DD28SubModel() { LearningDeliveryObject = new LearningDelivery() { FundModel = 35 }, LearnerEmploymentStatusObj = new List <LearnerEmploymentStatus>() { new LearnerEmploymentStatus() { EmpStat = 11, EmploymentStatusMonitorings = new List <EmploymentStatusMonitoring>() { new EmploymentStatusMonitoring() { ESMCode = "1", ESMType = "BSI" }, new EmploymentStatusMonitoring() { ESMCode = "1", ESMType = "DUmmy" } } } } }; //act var actual = dd28RuleFundModelAndEmpStatEmpCodeCheck.Evaluate(param); //assert Assert.True(actual); }
public void Invalid_EMPStat_ReturnsFalse() { //arrange var dd28RuleFundModelAndEmpStatEmpCodeCheck = new DD28RuleCriteria2(_mock.Object); var param = new DD28SubModel() { LearningDeliveryObject = new MessageLearnerLearningDelivery() { FundModel = 35 }, LearnerEmploymentStatusObj = new List <MessageLearnerLearnerEmploymentStatus>() { new MessageLearnerLearnerEmploymentStatus() { EmpStat = 110, EmploymentStatusMonitoring = new MessageLearnerLearnerEmploymentStatusEmploymentStatusMonitoring[] { new MessageLearnerLearnerEmploymentStatusEmploymentStatusMonitoring() { ESMCode = 3, ESMType = "BSI" }, new MessageLearnerLearnerEmploymentStatusEmploymentStatusMonitoring() { ESMCode = 1, ESMType = "DUmmy" } } } } }; //act var actual = dd28RuleFundModelAndEmpStatEmpCodeCheck.Evaluate(param); //assert Assert.False(actual); }