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);
 }
コード例 #2
0
 public bool FilePreparationDateConditionMet(DateTime learnStartDate, DateTime filePrepDate, DateTime januaryFirst)
 {
     return(filePrepDate >= januaryFirst &&
            _dateTimeQueryService.DaysBetween(learnStartDate, filePrepDate) <= 60);
 }
コード例 #3
0
 public bool LearnActEndDateConditionMet(DateTime learnStartDate, DateTime?learnActEndDate)
 {
     return(learnActEndDate.HasValue &&
            _dateTimeQueryService.DaysBetween(learnStartDate, learnActEndDate.Value) < 372);
 }
コード例 #4
0
 public bool HasQualifyingPlannedDuration(ILearningDelivery theDelivery) =>
 _dateTimeQuery.DaysBetween(theDelivery.LearnStartDate, theDelivery.LearnPlanEndDate) >= MinimumCourseDuration;
コード例 #5
0
 public bool LearnPlanEndDateConditionMet(DateTime learnStartDate, DateTime learnPlanEndDate)
 {
     return(_dateTimeQueryService.DaysBetween(learnStartDate, learnPlanEndDate) < 372);
 }
コード例 #6
0
 public bool ApprenticeshipDurationConditionMet(DateTime learnStartDate, DateTime?learnActEndDate)
 {
     return(learnActEndDate.HasValue &&
            _dateTimeQueryService.DaysBetween(learnStartDate, (DateTime)learnActEndDate) < 365);
 }