예제 #1
0
 private static bool allTaskAreDone(Tasks tasks)
 {
     return tasks.Items.All(t => t.EntityState.Id == DoneTaskStateId);
 }
예제 #2
0
 private static bool AnyTaskNotOpen(Tasks tasks)
 {
     return tasks.Items.Any(t => t.EntityState.Id != OpenTaskStateId);
 }