示例#1
0
        public void When_UpdateTask_Then_VerifyResult()
        {
            var taskModel = TestDataHelper.GetTask().Map();
            var task      = _mockProjectManagerService.UpdateTask(taskModel);

            Assert.NotNull(task);
        }
 public IHttpActionResult UpdateTask([FromBody] TaskEntity taskEntity)
 {
     if (taskEntity.TaskId > 0)
     {
         return(Ok(projectManagerService.UpdateTask(taskEntity)));
     }
     return(Ok(false));
 }