public DD28Rule(IShortRule <DD28SubModel, LearnerEmploymentStatus> dd28PickMatchingEmpRecord,
                        IEnumerable <IDD28RuleCriteria> dd28CriteriaRules)
        {
            _dd28PickMatchingEmpRecord = dd28PickMatchingEmpRecord;

            //subrules to be exuected with OR condition
            _dd28CriteriaRules = dd28CriteriaRules;
        }
 public DD21Rule(IShortRule <DD28SubModel, LearnerEmploymentStatus> dd28PickMatchingEmpRecord,
                 IDD21GetLearningDeliveriesWithSpecificEmpStatusMonitoringType dd21GetLearningDeliveriesWithSpecificEmp,
                 IReferenceData <string, string> referenceData)
 {
     _dd28PickMatchingEmpRecord = dd28PickMatchingEmpRecord;
     _dd21GetLearningDeliveriesWithSpecificEmp = dd21GetLearningDeliveriesWithSpecificEmp;
     _allowedFamType     = referenceData.Get(AppConstants.DD21AllowedFamType);
     _FamCodeShouldNotBe = referenceData.Get(AppConstants.DD21FamCodeShouldNotBe);
 }
Beispiel #3
0
 public DoB48Validator(IShortRule <LearningDelivery> dd07IsYRule,
                       ISharedRule <Learner, bool> learnerDoBNotNullRule,
                       IShortRule <List <LearningDelivery> > dd04IsInRangeRule,
                       IShortRule <Learner> isLearnerBelowSchoolAge)
 {
     _dd07IsYRule             = dd07IsYRule;
     _learnerDoBNotNullRule   = learnerDoBNotNullRule;
     _dd04IsInRangeRule       = dd04IsInRangeRule;
     _IsLearnerBelowSchoolAge = isLearnerBelowSchoolAge;
 }
 public DoB48Validator(IDD07IsYRule dd07IsYRule,
                       ISharedRule <MessageLearner, bool> learnerDoBNotNullRule,
                       IShortRule <MessageLearner> dd04IsInRangeRule,
                       IShortRule <MessageLearner> isLearnerBelowSchoolAge,
                       IValidationErrorHandler <MessageLearner> validationErrorHandler)
 {
     _dd07IsYRule             = dd07IsYRule;
     _learnerDoBNotNullRule   = learnerDoBNotNullRule;
     _dd04IsInRangeRule       = dd04IsInRangeRule;
     _IsLearnerBelowSchoolAge = isLearnerBelowSchoolAge;
     _validationErrorHandler  = validationErrorHandler;
 }