コード例 #1
0
        public void GetBikeType_Calls_GetById_In_Repo()
        {
            var id = 1;

            bikeTypeService.GetBikeType(id);
            mockRepo.Verify(r => r.GetById(It.IsAny <int>()), Times.Once);
        }
コード例 #2
0
 public IActionResult GetBikeType(int id)
 {
     return(Ok(_mapper.Map <BikeTypeResource>(_bikeTypeService.GetBikeType(id))));
 }