Exemple #1
0
        static void Main(string[] args)
        {
            while (true)
            {
                try
                {
                    var entry = Console.ReadLine().ToLower();

                    var shopInput = new ShopInputModel(entry);

                    var shop = new Shop(shopInput.TimeOfDay);

                    var dishes = shop.GetDishes(shopInput.Entries);

                    shopInput.Display(dishes);
                }
                catch (ShopException ex)
                {
                    Console.WriteLine(ex.Message);
                }

            }
        }
Exemple #2
0
 public ShopNightTest()
 {
     this.Shop = new Shop(new Night());
 }