public IHttpActionResult GetAllTasks()
        {
            var parentTasks = projectManagerService.GetAllParentTasks();
            var tasks       = projectManagerService.GetAllTasks();

            parentTasks.AddRange(tasks);
            return(Ok(parentTasks));
        }
示例#2
0
        public void When_GetAllParentTasks_Then_VerifyResult()
        {
            var taskList = _mockProjectManagerService.GetAllParentTasks();

            Assert.NotNull(taskList);
            Assert.AreEqual(taskList.Count, 1);
        }