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

            parentTasks.AddRange(tasks);
            return(Ok(parentTasks));
        }
Example #2
0
        public void When_GetAllTasks_Then_VerifyResult()
        {
            var taskList = _mockProjectManagerService.GetAllTasks();

            Assert.NotNull(taskList);
        }