public void SetUp() { _task = new Task { Title = "Title", Description = "Description" }; var interval = new Interval { StartTime = DateTimeOffset.Now.AddMinutes(-10), EndTime = DateTimeOffset.Now }; _task.Intervals.Add(interval); _control = new TaskDetailControl(_task); }
private void ShowTaskDetails(Task task) { var control = new TaskDetailControl(task); InsertAndShowControl(control); }