private LSDPostcode_01Rule NewRule(
     IValidationErrorHandler validationErrorHandler = null,
     IPostcodesDataService postcodesDataService     = null,
     ILearningDeliveryFAMQueryService learningDeliveryFAMQueryService = null)
 {
     return(new LSDPostcode_01Rule(validationErrorHandler, postcodesDataService, learningDeliveryFAMQueryService));
 }
 public HEPostCode_01Rule(
     IValidationErrorHandler validationErrorHandler,
     IPostcodesDataService postcodesDataService)
     : base(validationErrorHandler, RuleNameConstants.HEPostCode_01)
 {
     _postcodesDataService = postcodesDataService;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DelLocPostCode_18Rule" /> class.
 /// </summary>
 /// <param name="validationErrorHandler">The validation error handler.</param>
 /// <param name="commonChecks">The common checks.</param>
 /// <param name="fcsData">The FCS data.</param>
 /// <param name="postcodesData">The postcodes data.</param>
 /// <param name="derivedData22">The derived data22.</param>
 public DelLocPostCode_18Rule(
     IValidationErrorHandler validationErrorHandler,
     IProvideRuleCommonOperations commonChecks,
     IFCSDataService fcsData,
     IPostcodesDataService postcodesData)
     : base(validationErrorHandler, commonChecks, fcsData, postcodesData, RuleNameConstants.DelLocPostCode_18)
 {
 }
Example #4
0
 private DelLocPostCode_14Rule NewRule(
     IValidationErrorHandler validationErrorHandler = null,
     IFCSDataService fcsDataService             = null,
     IPostcodesDataService postcodesDataService = null,
     IDerivedData_22Rule derivedData22          = null)
 {
     return(new DelLocPostCode_14Rule(fcsDataService, postcodesDataService, derivedData22, validationErrorHandler));
 }
Example #5
0
 public LSDPostcode_01Rule(
     IValidationErrorHandler validationErrorHandler,
     IPostcodesDataService postcodesDataService,
     ILearningDeliveryFAMQueryService learningDeliveryFAMQueryService)
     : base(validationErrorHandler, RuleNameConstants.LSDPostcode_01)
 {
     _learningDeliveryFAMQueryService = learningDeliveryFAMQueryService;
     _postcodesDataService            = postcodesDataService;
 }
 public DelLocPostCode_14Rule(
     IFCSDataService fcsDataService,
     IPostcodesDataService postcodeService,
     IDerivedData_22Rule derivedData22,
     IValidationErrorHandler validationErrorHandler)
     : base(validationErrorHandler, RuleNameConstants.DelLocPostCode_14)
 {
     _fcsDataService  = fcsDataService;
     _postcodeService = postcodeService;
     _derivedData22   = derivedData22;
 }
Example #7
0
 public LSDPostcode_02Rule(
     IValidationErrorHandler validationErrorHandler,
     IFileDataService fileDataService,
     IPostcodesDataService postcodesDataService,
     IOrganisationDataService organisationDataService,
     ILearningDeliveryFAMQueryService learningDeliveryFAMQueryService,
     IDerivedData_35Rule dd35)
     : base(validationErrorHandler, RuleNameConstants.LSDPostcode_02)
 {
     _fileDataService                 = fileDataService;
     _postcodesDataService            = postcodesDataService;
     _organisationDataService         = organisationDataService;
     _learningDeliveryFAMQueryService = learningDeliveryFAMQueryService;
     _dd35 = dd35;
 }
Example #8
0
 private LSDPostcode_02Rule NewRule(
     IValidationErrorHandler validationErrorHandler = null,
     IFileDataService fileDataService                 = null,
     IPostcodesDataService postcodesDataService       = null,
     IOrganisationDataService organisationDataService = null,
     ILearningDeliveryFAMQueryService learningDeliveryFAMQueryService = null,
     IDerivedData_35Rule dd35 = null)
 {
     return(new LSDPostcode_02Rule(
                validationErrorHandler,
                fileDataService,
                postcodesDataService,
                organisationDataService,
                learningDeliveryFAMQueryService,
                dd35));
 }
Example #9
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DelLocPostCode_EligibilityRule{TEligibilityItem}" /> class.
        /// </summary>
        /// <param name="validationErrorHandler">The validation error handler.</param>
        /// <param name="commonChecks">The common checks.</param>
        /// <param name="fcsData">The FCS data.</param>
        /// <param name="postcodesData">The postcodes data.</param>
        /// <param name="ruleName">Name of the rule.</param>
        public DelLocPostCode_EligibilityRule(
            IValidationErrorHandler validationErrorHandler,
            IProvideRuleCommonOperations commonChecks,
            IFCSDataService fcsData,
            IPostcodesDataService postcodesData,
            string ruleName)
            : base(validationErrorHandler, ruleName)
        {
            It.IsNull(validationErrorHandler)
            .AsGuard <ArgumentNullException>(nameof(validationErrorHandler));
            It.IsNull(commonChecks)
            .AsGuard <ArgumentNullException>(nameof(commonChecks));
            It.IsNull(fcsData)
            .AsGuard <ArgumentNullException>(nameof(fcsData));
            It.IsNull(postcodesData)
            .AsGuard <ArgumentNullException>(nameof(postcodesData));

            _check         = commonChecks;
            FcsData        = fcsData;
            _postcodesData = postcodesData;
        }
 public EasValidationService(
     IEasPaymentService easPaymentService,
     IDateTimeProvider dateTimeProvider,
     IFCSDataService fcsDataService,
     IPostcodesDataService postcodesDataService,
     IFundingLineContractTypeMappingDataService fundingLineContractTypeMappingDataService,
     IValidationErrorBuilder validationErrorBuilder,
     IEASFileDataProviderService easFileDataProviderService,
     IFileDataCacheService fileDataCacheService,
     ILogger logger)
 {
     _easPaymentService    = easPaymentService;
     _dateTimeProvider     = dateTimeProvider;
     _fcsDataService       = fcsDataService;
     _postcodesDataService = postcodesDataService;
     _fundingLineContractTypeMappingDataService = fundingLineContractTypeMappingDataService;
     _easFileDataProviderService = easFileDataProviderService;
     _validationErrorBuilder     = validationErrorBuilder;
     _fileDataCacheService       = fileDataCacheService;
     _logger = logger;
 }
 public DelLocPostCode_16Rule(IPostcodesDataService postcodesDataService, IValidationErrorHandler validationErrorHandler)
     : base(validationErrorHandler, RuleNameConstants.DelLocPostCode_16)
 {
     _postcodesDataService = postcodesDataService;
 }
 public DelLocPostCode_03Rule(IPostcodesDataService postcodesDataService, ILearningDeliveryFAMQueryService learningDeliveryFamQueryService, IValidationErrorHandler validationErrorHandler)
     : base(validationErrorHandler, RuleNameConstants.DelLocPostCode_03)
 {
     _postcodesDataService            = postcodesDataService;
     _learningDeliveryFamQueryService = learningDeliveryFamQueryService;
 }
 public PostcodePrior_01Rule(IPostcodesDataService postcodesDataService, IValidationErrorHandler validationErrorHandler)
     : base(validationErrorHandler, RuleNameConstants.PostcodePrior_01)
 {
     _postcodesDataService = postcodesDataService;
 }
 private HEPostCode_01Rule NewRule(
     IValidationErrorHandler validationErrorHandler = null,
     IPostcodesDataService postcodesDataService     = null)
 {
     return(new HEPostCode_01Rule(validationErrorHandler, postcodesDataService));
 }
 private PostcodePrior_01Rule NewRule(IPostcodesDataService postcodesDataService = null, IValidationErrorHandler validationErrorHandler = null)
 {
     return(new PostcodePrior_01Rule(postcodesDataService, validationErrorHandler));
 }
 private DelLocPostCode_16Rule NewRule(IPostcodesDataService postcodesDataService = null, IValidationErrorHandler validationErrorHandler = null)
 {
     return(new DelLocPostCode_16Rule(postcodesDataService, validationErrorHandler));
 }
 private DelLocPostCode_03Rule NewRule(IPostcodesDataService postcodesDataService = null, ILearningDeliveryFAMQueryService learningDeliveryFamQueryService = null, IValidationErrorHandler validationErrorHandler = null)
 {
     return(new DelLocPostCode_03Rule(postcodesDataService, learningDeliveryFamQueryService, validationErrorHandler));
 }