예제 #1
0
 public static bool IsOverDue(this ICompletableCalendarPeriod @this)
 {
     if (@this.IsCompleted())
     {
         return(false);
     }
     return(@this.EndDate.GetValueOrDefault() < DateTime.Now);
 }
예제 #2
0
 public static bool IsCompletedPastDue(this ICompletableCalendarPeriod @this)
 {
     if ([email protected]())
     {
         return(false);
     }
     return(@this.EndDate.GetValueOrDefault() < @this.CompletionDate.GetValueOrDefault());
 }
예제 #3
0
 public static bool IsCompleted(this ICompletableCalendarPeriod @this)
 {
     return(@this.CompletionDate.HasValue);
 }