예제 #1
0
        public async Task VerifyGetTasksFunction()
        {
            var taskObj = new ManageTask(_taskRepository.Object);

            await _manageTask.GetAllTasks();

            _taskRepository.Verify(r => r.GetAllTasks(), Times.Once);
        }
예제 #2
0
 public async Task <IActionResult> GetAllTasks()
 {
     return(Ok(await _manageTask.GetAllTasks()));
 }