private DerivedData_ValidityCategory_02 NewDDRule(
     ILearningDeliveryFAMQueryService learningDeliveryFAMQueryService = null,
     IDerivedData_07Rule dd07 = null,
     IDerivedData_11Rule dd11 = null,
     IDerivedData_35Rule dd35 = null)
 {
     return(new DerivedData_ValidityCategory_02(learningDeliveryFAMQueryService, dd07, dd11, dd35));
 }
Ejemplo n.º 2
0
 public DerivedData_ValidityCategory_01(
     ILearningDeliveryFAMQueryService learningDeliveryFAMQueryService,
     IDerivedData_07Rule dd07,
     IDerivedData_11Rule dd11,
     IDerivedData_35Rule dd35)
 {
     _learningDeliveryFAMQueryService = learningDeliveryFAMQueryService;
     _dd07 = dd07;
     _dd11 = dd11;
     _dd35 = dd35;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LearnAimRefRuleActionProvider " /> class.
        /// </summary>
        /// <param name="commonOperations">The common operations.</param>
        /// <param name="larsData">The lars data.</param>
        /// <param name="derivedData11">The derived data 11 (rule).</param>
        public LearnAimRefRuleActionProvider(
            IProvideRuleCommonOperations commonOperations,
            IDerivedData_11Rule derivedData11)
        {
            It.IsNull(commonOperations)
            .AsGuard <ArgumentNullException>(nameof(commonOperations));
            It.IsNull(derivedData11)
            .AsGuard <ArgumentNullException>(nameof(derivedData11));

            Check         = commonOperations;
            DerivedData11 = derivedData11;

            _branchActions = new Dictionary <int, IReadOnlyCollection <Func <ILearningDelivery, ILearner, BranchResult> > >
            {
                [TypeOfFunding.AdultSkills] = PackageRoutines(IsQualifyingCategoryOLASS, IsQualifyingCategoryUnemployed, IsQualifyingCategoryApprenticeship, IsQualifyingCategoryAdultSkills),
                [TypeOfFunding.ApprenticeshipsFrom1May2017] = PackageRoutines(IsQualifyingCategoryApprenticeship, IsQualifyingCategoryApprencticeshipAny),
                [TypeOfFunding.OtherAdult]      = PackageRoutines(IsQualifyingCategoryOtherFundingAny),
                [TypeOfFunding.NotFundedByESFA] = PackageRoutines(IsQualifyingCategoryAdvancedLearnerLoan, IsQualifyingCategoryOtherFundingAny),
                [TypeOfFunding.Age16To19ExcludingApprenticeships] = PackageRoutines(IsQualifyingCategory16To19EFA),
                [TypeOfFunding.Other16To19]        = PackageRoutines(IsQualifyingCategory16To19EFA),
                [TypeOfFunding.EuropeanSocialFund] = PackageRoutines(IsQualifyingCategoryESF),
                [TypeOfFunding.CommunityLearning]  = PackageRoutines(IsQualifyingCategoryCommunityLearning),
            };
        }