/// <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.Has(thisDelivery.LearnActEndDateNullable) ? TypeOfLearningProgramme.WithinMaxmimumTrainingDuration(thisDelivery.LearnStartDate, thisDelivery.LearnActEndDateNullable.Value) : true); }