public void AddTask() { var task = new TaskModel() { Task = "NBench Test", ParentTaskId = 1, Priority = 10, StartDate = DateTime.Now, EndDate = DateTime.Now.AddDays(8) }; taskManagerController.AddTask(task); }
public void AddTask() { try { TaskModel task = new TaskModel(); task.Task = "Nunit Test"; task.ParentTaskId = 1; task.Priority = 10; task.StartDate = DateTime.Now; task.EndDate = DateTime.Now.AddDays(7); task.ProjectId = 1; taskMangerController.AddTask(task); } catch (Exception) { Assert.Fail("API Failed"); } }