public DateOfBirth_35Rule(IDateTimeQueryService dateTimeQueryService, IDerivedData_07Rule dd07, ILearningDeliveryFAMQueryService learningDeliveryFAMQueryService, IValidationErrorHandler validationErrorHandler)
     : base(validationErrorHandler, RuleNameConstants.DateOfBirth_35)
 {
     _dateTimeQueryService = dateTimeQueryService;
     _dd07 = dd07;
     _learningDeliveryFAMQueryService = learningDeliveryFAMQueryService;
 }
 private DateOfBirth_51Rule NewRule(
     IDateTimeQueryService dateTimeQueryService = null,
     ILearningDeliveryFAMQueryService learningDeliveryFamQueryService = null,
     IValidationErrorHandler validationErrorHandler = null)
 {
     return(new DateOfBirth_51Rule(dateTimeQueryService, learningDeliveryFamQueryService, validationErrorHandler));
 }
Example #3
0
 private DateOfBirth_34Rule NewRule(
     IValidationErrorHandler validationErrorHandler   = null,
     IAcademicYearDataService academicYearDataService = null,
     IDateTimeQueryService dateTimeQueryService       = null)
 {
     return(new DateOfBirth_34Rule(academicYearDataService, validationErrorHandler, dateTimeQueryService));
 }
 public ESMType_12Rule(
     IValidationErrorHandler validationErrorHandler,
     IDateTimeQueryService dateTimeQueryService)
 {
     _messageHandler       = validationErrorHandler;
     _dateTimeQueryService = dateTimeQueryService;
 }
        public DateOfBirth_46Rule(IDateTimeQueryService dateTimeQueryService, ILearningDeliveryFAMQueryService learningDeliveryFAMQueryService, IValidationErrorHandler validationErrorHandler)
            : base(validationErrorHandler, RuleNameConstants.DateOfBirth_46)
        {
            _dateTimeQueryService = dateTimeQueryService;

            _learningDeliveryFAMQueryService = learningDeliveryFAMQueryService;
        }
 private OutStartDate_01Rule NewRule(
     IAcademicYearDataService academicYearDataService = null,
     IDateTimeQueryService dateTimeQueryService       = null,
     IValidationErrorHandler validationErrorHandler   = null)
 {
     return(new OutStartDate_01Rule(academicYearDataService, dateTimeQueryService, validationErrorHandler));
 }
 public LLDDHealthProb_07Rule(IValidationErrorHandler validationErrorHandler, IDD06 dd06, ILearningDeliveryFAMQueryService learningDeliveryFAMQueryService, IDateTimeQueryService dateTimeQueryService)
     : base(validationErrorHandler)
 {
     _dd06 = dd06;
     _learningDeliveryFAMQueryService = learningDeliveryFAMQueryService;
     _dateTimeQueryService            = dateTimeQueryService;
 }
Example #8
0
 public ESMType_09Rule NewRule(
     IValidationErrorHandler handler            = null,
     IDateTimeQueryService dateTimeQueryService = null,
     IDerivedData_07Rule dd07 = null)
 {
     return(new ESMType_09Rule(handler, dateTimeQueryService, dd07));
 }
Example #9
0
 public DateOfBirth_13Rule(IValidationDataService validationDataService, IDateTimeQueryService dateTimeQueryService, ILearningDeliveryFAMQueryService learningDeliveryFAMQueryService, IValidationErrorHandler validationErrorHandler)
     : base(validationErrorHandler)
 {
     _validationDataService           = validationDataService;
     _dateTimeQueryService            = dateTimeQueryService;
     _learningDeliveryFAMQueryService = learningDeliveryFAMQueryService;
 }
        private LearnDelFAMType_57Rule NewRule(
            IValidationErrorHandler validationErrorHandler = null,
            ILARSDataService larsDataService = null,
            IDerivedData_07Rule dd07         = null,
            IDerivedData_12Rule dd12         = null,
            IDerivedData_21Rule dd21         = null,
            ILearningDeliveryFAMQueryService famQueryService = null,
            IFileDataService fileDataService = null,
            IOrganisationDataService organisationDataService = null,
            IDateTimeQueryService dateTimeQueryService       = null)
        {
            var dateTimeQueryServiceMock = new Mock <IDateTimeQueryService>();

            dateTimeQueryServiceMock.Setup(x => x.YearsBetween(It.IsAny <DateTime>(), It.IsAny <DateTime>())).Returns(24);

            return(new LearnDelFAMType_57Rule(
                       validationErrorHandler,
                       larsDataService,
                       dd07,
                       dd12,
                       dd21,
                       famQueryService,
                       fileDataService,
                       organisationDataService,
                       dateTimeQueryService ?? dateTimeQueryServiceMock.Object));
        }
Example #11
0
 public LearnStartDate_02Rule NewRule(
     IValidationErrorHandler handler = null,
     IAcademicYearDataService academicYearDataService = null,
     IDateTimeQueryService dateTimeQueryService       = null)
 {
     return(new LearnStartDate_02Rule(handler, academicYearDataService, dateTimeQueryService));
 }
 private LLDDHealthProb_07Rule NewRule(
     IValidationErrorHandler validationErrorHandler = null,
     IDerivedData_06Rule dd06 = null,
     IDateTimeQueryService dateTimeQueryService = null)
 {
     return(new LLDDHealthProb_07Rule(dd06, dateTimeQueryService, validationErrorHandler));
 }
        private LearnDelFAMType_59Rule NewRule(
            IValidationErrorHandler validationErrorHandler = null,
            ILARSDataService larsDataService = null,
            IDerivedData_07Rule dd07         = null,
            IDerivedData_28Rule dd28         = null,
            IDerivedData_29Rule dd29         = null,
            ILearningDeliveryFAMQueryService famQueryService = null,
            IFileDataService fileDataService = null,
            IOrganisationDataService organisationDataService = null,
            IDateTimeQueryService dateTimeQueryService       = null)
        {
            var dateTimeQueryServiceMock = new Mock <IDateTimeQueryService>();

            dateTimeQueryServiceMock.Setup(x => x.AgeAtGivenDate(It.IsAny <DateTime>(), It.IsAny <DateTime>())).Returns(20);

            return(new LearnDelFAMType_59Rule(
                       validationErrorHandler,
                       larsDataService,
                       dd07,
                       dd28,
                       dd29,
                       famQueryService,
                       fileDataService,
                       organisationDataService,
                       dateTimeQueryService ?? dateTimeQueryServiceMock.Object));
        }
Example #14
0
 private AFinDate_09Rule NewRule(
     IDerivedData_07Rule dd07 = null,
     IDateTimeQueryService dateTimeQueryService     = null,
     IValidationErrorHandler validationErrorHandler = null)
 {
     return(new AFinDate_09Rule(dd07, dateTimeQueryService, validationErrorHandler));
 }
 public DerivedData_17Rule NewRule(
     IDateTimeQueryService dateTimeQueryService = null,
     ILARSDataService larsDataService           = null,
     ILearningDeliveryAppFinRecordQueryService appFinRecordQueryService = null)
 {
     return(new DerivedData_17Rule(dateTimeQueryService, larsDataService, appFinRecordQueryService));
 }
Example #16
0
 public DateOfBirth_07Rule(IAcademicYearDataService academicYearDataService, IDateTimeQueryService dateTimeQueryService, ILearningDeliveryFAMQueryService learningDeliveryFAMQueryService, IValidationErrorHandler validationErrorHandler)
     : base(validationErrorHandler, RuleNameConstants.DateOfBirth_07)
 {
     _academicYearDataService         = academicYearDataService;
     _dateTimeQueryService            = dateTimeQueryService;
     _learningDeliveryFAMQueryService = learningDeliveryFAMQueryService;
 }
 public DateOfBirth_10Rule(IDD04 dd04, IDD07 dd07, IAcademicYearCalendarService academicYearCalendarService, IDateTimeQueryService dateTimeQueryService, IValidationErrorHandler validationErrorHandler)
     : base(validationErrorHandler)
 {
     _dd04 = dd04;
     _dd07 = dd07;
     _academicYearCalendarService = academicYearCalendarService;
     _dateTimeQueryService        = dateTimeQueryService;
 }
 private LLDDHealthProb_06Rule NewRule(
     ILearningDeliveryFAMQueryService learningDeliveryFamQueryService = null,
     IDerivedData_06Rule dd06 = null,
     IDateTimeQueryService dateTimeQueryService     = null,
     IValidationErrorHandler validationErrorHandler = null)
 {
     return(new LLDDHealthProb_06Rule(learningDeliveryFamQueryService, dd06, dateTimeQueryService, validationErrorHandler));
 }
Example #19
0
 public LearnAimRef_59Rule(IDD07 dd07, IDateTimeQueryService dateTimeQueryService, ILARSDataService larsDataService, ILearningDeliveryFAMQueryService learningDeliveryFamQueryService, IValidationErrorHandler validationErrorHandler)
     : base(validationErrorHandler, RuleNameConstants.LearnAimRef_59)
 {
     _dd07 = dd07;
     _dateTimeQueryService            = dateTimeQueryService;
     _larsDataService                 = larsDataService;
     _learningDeliveryFamQueryService = learningDeliveryFamQueryService;
 }
 public LearnStartDate_16Rule(
     IValidationErrorHandler validationErrorHandler,
     IFCSDataService fcsData,
     IDateTimeQueryService dateTimeQueryService)
     : base(validationErrorHandler, RuleNameConstants.LearnStartDate_16)
 {
     _contracts            = fcsData;
     _dateTimeQueryService = dateTimeQueryService;
 }
 public ESMType_09Rule(
     IValidationErrorHandler validationErrorHandler,
     IDateTimeQueryService dateTimeQueryService,
     IDerivedData_07Rule dd07)
 {
     _messageHandler       = validationErrorHandler;
     _dateTimeQueryService = dateTimeQueryService;
     _dd07 = dd07;
 }
Example #22
0
 public EmpStat_07Rule(
     IValidationErrorHandler validationErrorHandler,
     IDateTimeQueryService dateTimeQueryService,
     ILearnerEmploymentStatusQueryService learnerEmploymentStatusQueryService)
     : base(validationErrorHandler, RuleNameConstants.EmpStat_07)
 {
     _dateTimeQueryService = dateTimeQueryService;
     _learnerEmploymentStatusQueryService = learnerEmploymentStatusQueryService;
 }
Example #23
0
 public LLDDHealthProb_07Rule(
     IDerivedData_06Rule derivedData06,
     IDateTimeQueryService dateTimeQueryService,
     IValidationErrorHandler validationErrorHandler)
     : base(validationErrorHandler, RuleNameConstants.LLDDHealthProb_07)
 {
     _derivedData06        = derivedData06;
     _dateTimeQueryService = dateTimeQueryService;
 }
 public DerivedData_17Rule(
     IDateTimeQueryService dateTimeQueryService,
     ILARSDataService larsDataService,
     ILearningDeliveryAppFinRecordQueryService appFinRecordQueryService)
 {
     _dateTimeQueryService = dateTimeQueryService;
     _larsData             = larsDataService;
     _appFinRecordData     = appFinRecordQueryService;
 }
 private ULN_07Rule NewRule(
     IAcademicYearDataService academicDataQueryService = null,
     IDateTimeQueryService dateTimeQueryService        = null,
     IFileDataService fileDataService = null,
     ILearningDeliveryFAMQueryService learningDeliveryFAMQueryService = null,
     IValidationErrorHandler validationErrorHandler = null)
 {
     return(new ULN_07Rule(academicDataQueryService, dateTimeQueryService, fileDataService, learningDeliveryFAMQueryService, validationErrorHandler));
 }
Example #26
0
 public LearnStartDate_02Rule(
     IValidationErrorHandler validationErrorHandler,
     IAcademicYearDataService academicYearService,
     IDateTimeQueryService dateTimeQueryService)
     : base(validationErrorHandler, Name)
 {
     _academicYearService  = academicYearService;
     _dateTimeQueryService = dateTimeQueryService;
 }
 public DateOfBirth_34Rule(
     IAcademicYearDataService academicYearDataService,
     IValidationErrorHandler validationErrorHandler,
     IDateTimeQueryService dateTimeQueryService)
     : base(validationErrorHandler, RuleNameConstants.DateOfBirth_34)
 {
     _academicYearDataService = academicYearDataService;
     _dateTimeQueryService    = dateTimeQueryService;
 }
Example #28
0
 public LearnStartDate_15Rule(
     IValidationErrorHandler validationErrorHandler,
     IDerivedData_22Rule derivedData22,
     IDateTimeQueryService dateTimeQueryService)
     : base(validationErrorHandler, RuleNameConstants.LearnStartDate_15)
 {
     _derivedData22        = derivedData22;
     _dateTimeQueryService = dateTimeQueryService;
 }
 public OutCollDate_02Rule(
     IAcademicYearDataService academicYearDataService,
     IDateTimeQueryService dateTimeQueryService,
     IValidationErrorHandler validationErrorHandler)
     : base(validationErrorHandler, RuleNameConstants.OutCollDate_02)
 {
     _academicYearDataService = academicYearDataService;
     _dateTimeQueryService    = dateTimeQueryService;
 }
 private DateOfBirth_41Rule NewRule(
     IDerivedData_07Rule dd07 = null,
     IAcademicYearDataService academicYearDataService = null,
     IDateTimeQueryService dateTimeQueryService       = null,
     ILearningDeliveryFAMQueryService learningDeliveryFamQueryService = null,
     IValidationErrorHandler validationErrorHandler = null)
 {
     return(new DateOfBirth_41Rule(dd07, academicYearDataService, dateTimeQueryService, learningDeliveryFamQueryService, validationErrorHandler));
 }