public void AllRestuarants_CallsGetAllOnce()
        {
            var service = new RestaurantService(_moqRepo.Object);

            service.AllRestaurants();

            _moqRepo.Verify(m => m.GetAll(), Times.Once);
        }
Example #2
0
 public List <Restaurant> GetAllRestaurants()
 {
     return(_restaurantService.AllRestaurants());
 }