public bool ConditionMet(int fundModel, int?progType, int aimType, DateTime learnStartDate, DateTime learnPlanEndDate, IEnumerable <ILearningDeliveryFAM> learningDeliveryFams)
 {
     return(!Excluded(progType, learningDeliveryFams) &&
            fundModel == TypeOfFunding.ApprenticeshipsFrom1May2017 &&
            learnStartDate >= _mayFirst2017 &&
            _dd07.IsApprenticeship(progType) &&
            aimType == TypeOfAim.ProgrammeAim &&
            _dateTimeQueryService.MonthsBetween(learnStartDate, learnPlanEndDate) < 12);
 }
コード例 #2
0
 public bool ConditionMet(DateTime learnStartDate, DateTime dateOfBirth, int fundModel, int?progType, int aimType, DateTime learnPlanEndDate, IEnumerable <ILearningDeliveryFAM> learningDeliveryFams)
 {
     return(!Excluded(learningDeliveryFams) &&
            learnStartDate < _firstAugust2016 &&
            learnStartDate >= _firstAugust2014 &&
            (fundModel == TypeOfFunding.AdultSkills || fundModel == TypeOfFunding.OtherAdult) &&
            (progType.HasValue && progType.Value == TypeOfLearningProgramme.ApprenticeshipStandard) &&
            aimType == TypeOfAim.ProgrammeAim &&
            _dateTimeQueryService.YearsBetween(dateOfBirth, learnStartDate) >= 19 &&
            _dateTimeQueryService.MonthsBetween(learnStartDate, learnPlanEndDate) < 12);
 }
コード例 #3
0
 public bool ApprenticeshipDurationConditionMet(DateTime learnStartDate, DateTime?learnActEndDate)
 {
     return(learnActEndDate.HasValue &&
            _dateTimeQueryService.MonthsBetween(learnStartDate, (DateTime)learnActEndDate) < 6);
 }
コード例 #4
0
 public bool ApprenticeshipDurationConditionMet(DateTime learnStartDate, DateTime learnPlanEndDate)
 {
     return _dateTimeQueryService.MonthsBetween(learnStartDate, learnPlanEndDate) < 6;
 }