Esempio n. 1
0
        public async Task VerifyGetTaskFunction()
        {
            var taskObj = new ManageTask(_taskRepository.Object);

            await _manageTask.GetTask(114);

            _taskRepository.Verify(r => r.GetTask(114), Times.Once);
        }
Esempio n. 2
0
 public async Task <IActionResult> GetTask(int id)
 {
     return(Ok(await _manageTask.GetTask(id)));
 }