public void End_Task() { var taskId = 1; _mockRepository.EndTask(taskId, "TestUser"); var updatedTask = _mockRepository.GetTaskById(taskId); Assert.IsTrue(updatedTask.ActiveInd == "N"); Assert.IsTrue(updatedTask.UpdatedBy == "TestUser"); }
public void EndTask(int taskId, string userId) { _repo.EndTask(taskId, userId); }