예제 #1
0
 public bool ConditionMet(int fundModel, int?progType, int aimType, DateTime learnStartDate, DateTime learnPlanEndDate, IEnumerable <ILearningDeliveryFAM> learningDeliveryFams)
 {
     return(!Excluded(progType, learningDeliveryFams) &&
            fundModel == FundModels.ApprenticeshipsFrom1May2017 &&
            learnStartDate >= _mayFirst2017 &&
            _dd07.IsApprenticeship(progType) &&
            aimType == AimTypes.ProgrammeAim &&
            _dateTimeQueryService.WholeDaysBetween(learnStartDate, learnPlanEndDate) < 365);
 }
 public bool LearnPlanEndDateConditionMet(DateTime learnStartDate, DateTime learnPlanEndDate)
 {
     return(_dateTimeQueryService.WholeDaysBetween(learnStartDate, learnPlanEndDate) < _days);
 }
예제 #3
0
 public bool LearnActEndDateConditionMet(DateTime learnStartDate, DateTime?learnActEndDate)
 {
     return(learnActEndDate.HasValue &&
            _dateTimeQueryService.WholeDaysBetween(learnStartDate, learnActEndDate.Value) < 365);
 }
 public bool ApprenticeshipDurationConditionMet(DateTime learnStartDate, DateTime learnPlanEndDate)
 {
     return(_dateTimeQueryService.WholeDaysBetween(learnStartDate, learnPlanEndDate) < 365);
 }
예제 #5
0
 public virtual bool DurationConditionMet(DateTime startDate, DateTime?actEndDate)
 {
     return(actEndDate.HasValue && _dateTimeQueryService.WholeDaysBetween(startDate, actEndDate.Value) < _days);
 }