Beispiel #1
0
 /// <summary>
 /// In valid start range.
 /// </summary>
 /// <param name="validity">The validity.</param>
 /// <param name="delivery">The delivery.</param>
 /// <returns>
 ///   <c>true</c> if [in valid start range] [the specified delivery]; otherwise, <c>false</c>.
 /// </returns>
 public bool InValidStartRange(ILARSValidity validity, ILearningDelivery delivery) =>
 It.IsBetween(delivery.LearnStartDate, validity.StartDate, validity.LastNewStartDate ?? DateTime.MaxValue);
Beispiel #2
0
 /// <summary>
 /// Determines whether [has qualifying category] [the specified validity].
 /// </summary>
 /// <param name="validity">The validity.</param>
 /// <returns>
 ///   <c>true</c> if [is qualifying category] [the specified validity]; otherwise, <c>false</c>.
 /// </returns>
 public bool HasQualifyingCategory(ILARSValidity validity) =>
 It.IsInRange(validity.ValidityCategory, TypeOfLARSValidity.Any);
Beispiel #3
0
 /// <summary>
 /// Determines whether the specified validity is current.
 /// </summary>
 /// <param name="validity">The validity.</param>
 /// <param name="delivery">The delivery.</param>
 /// <returns>
 ///   <c>true</c> if the specified validity is current; otherwise, <c>false</c>.
 /// </returns>
 public bool IsCurrent(ILARSValidity validity, ILearningDelivery delivery) =>
 It.IsBetween(delivery.LearnStartDate, validity.StartDate, validity.EndDate ?? DateTime.MaxValue);