Exemplo n.º 1
0
 public void GetById_Calls_GetById_In_Repo()
 {
     bikeService.GetById(Guid.NewGuid());
     mockRepo.Verify(r => r.GetById
                         (It.IsAny <Guid>()), Times.Once);
 }
Exemplo n.º 2
0
 public IActionResult GetBike(Guid id)
 {
     return(Ok(_mapper.Map <BikeResource>(_bikeService.GetById(id))));
 }