public static TaskMessage TaskDuration(RemoteTask task, TimeSpan duration) { return(new TaskMessage(task, ServerMessage.TaskDuration(duration))); }
public void TaskDuration(TimeSpan duration) { Do(() => Assert.Single(Messages, ServerMessage.TaskDuration(duration))); }