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