public async Task VerifyGetTaskFunction() { var taskObj = new ManageTask(_taskRepository.Object); await _manageTask.GetTask(114); _taskRepository.Verify(r => r.GetTask(114), Times.Once); }
public async Task <IActionResult> GetTask(int id) { return(Ok(await _manageTask.GetTask(id))); }