public void AllRestuarants_CallsGetAllOnce() { var service = new RestaurantService(_moqRepo.Object); service.AllRestaurants(); _moqRepo.Verify(m => m.GetAll(), Times.Once); }
public List <Restaurant> GetAllRestaurants() { return(_restaurantService.AllRestaurants()); }