/// <summary> /// Condition met. /// </summary> /// <param name="thisDelivery">this delivery.</param> /// <returns> /// true if any any point the conditions are met /// </returns> public bool ConditionMet(ILearningDelivery thisDelivery) { return(It.Has(thisDelivery) ? thisDelivery.LearnStartDate > DateTime.MinValue && TypeOfLearningProgramme.WithinMaxmimumTrainingDuration(thisDelivery.LearnStartDate, thisDelivery.LearnPlanEndDate) : true); }
/// <summary> /// Condition met. /// </summary> /// <param name="thisDelivery">this delivery.</param> /// <returns> /// true if any any point the conditions are met /// </returns> public bool ConditionMet(ILearningDelivery thisDelivery) { return(It.Has(thisDelivery) && It.IsEmpty(thisDelivery.LearnActEndDateNullable) ? TypeOfLearningProgramme.WithinMaxmimumOpenTrainingDuration(thisDelivery.LearnStartDate, _fileData.FilePreparationDate()) : true); }
/// <summary> /// Condition met. /// </summary> /// <param name="thisDelivery">this delivery.</param> /// <returns> /// true if any any point the conditions are met /// </returns> public bool ConditionMet(ILearningDelivery thisDelivery) { return(It.Has(thisDelivery) && It.Has(thisDelivery.LearnActEndDateNullable) ? TypeOfLearningProgramme.WithinMaxmimumTrainingDuration(thisDelivery.LearnStartDate, thisDelivery.LearnActEndDateNullable.Value) : true); }
/// <summary> /// Determines whether the specified delivery is viable. /// </summary> /// <param name="delivery">The delivery.</param> /// <returns> /// <c>true</c> if the specified delivery is viable; otherwise, <c>false</c>. /// </returns> public bool IsViable(ILearningDelivery delivery) => TypeOfLearningProgramme.IsViableApprenticeship(delivery.LearnStartDate);