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

            parentTasks.AddRange(tasks);
            return(Ok(parentTasks));
        }
Exemplo n.º 2
0
        public void When_GetAllParentTasks_Then_VerifyResult()
        {
            var taskList = _mockProjectManagerService.GetAllParentTasks();

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