Exemple #1
0
        private static void ListRestaurants(string name = null)
        {
            IRestaurantData restaurantData = new InMemoryRestaurantData();

            foreach (Restaurant r in restaurantData.GetRestaurantsByName(name))
            {
                //Console.WriteLine($"Id: {r.Id}\tName: {r.Name}\tCuisine: {r.Cuisine}\tLocation: {r.Location}");

                Console.WriteLine(r.ToJSON());
            }
        }
 public RestaurantCountViewComponent(InMemoryRestaurantData restaurantData)
 {
     this.restaurantData = restaurantData;
 }