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 == FundModels.AdultSkills || fundModel == FundModels.OtherAdult) &&
            (progType.HasValue && progType.Value == ProgTypes.ApprenticeshipStandard) &&
            aimType == AimTypes.ProgrammeAim &&
            _dateTimeQueryService.YearsBetween(dateOfBirth, learnStartDate) >= 19 &&
            _dateTimeQueryService.DaysBetween(learnStartDate, learnPlanEndDate) < 365);
 }
Esempio n. 2
0
 public bool FilePreparationDateConditionMet(DateTime learnStartDate, DateTime filePrepDate, DateTime januaryFirst)
 {
     return(filePrepDate >= januaryFirst &&
            _dateTimeQueryService.DaysBetween(learnStartDate, filePrepDate) <= 60);
 }
Esempio n. 3
0
 public bool LearnActEndDateConditionMet(DateTime learnStartDate, DateTime?learnActEndDate)
 {
     return(learnActEndDate.HasValue &&
            _dateTimeQueryService.DaysBetween(learnStartDate, learnActEndDate.Value) < 372);
 }
Esempio n. 4
0
 public bool HasQualifyingPlannedDuration(ILearningDelivery theDelivery) =>
 _dateTimeQuery.DaysBetween(theDelivery.LearnStartDate, theDelivery.LearnPlanEndDate) >= MinimumCourseDuration;
 public bool LearnPlanEndDateConditionMet(DateTime learnStartDate, DateTime learnPlanEndDate)
 {
     return(_dateTimeQueryService.DaysBetween(learnStartDate, learnPlanEndDate) < 372);
 }
Esempio n. 6
0
 public bool ApprenticeshipDurationConditionMet(DateTime learnStartDate, DateTime?learnActEndDate)
 {
     return(learnActEndDate.HasValue &&
            _dateTimeQueryService.DaysBetween(learnStartDate, (DateTime)learnActEndDate) < 365);
 }