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