public IHttpActionResult GetAllTasks() { var parentTasks = projectManagerService.GetAllParentTasks(); var tasks = projectManagerService.GetAllTasks(); parentTasks.AddRange(tasks); return(Ok(parentTasks)); }
public void When_GetAllParentTasks_Then_VerifyResult() { var taskList = _mockProjectManagerService.GetAllParentTasks(); Assert.NotNull(taskList); Assert.AreEqual(taskList.Count, 1); }