コード例 #1
0
ファイル: Program.cs プロジェクト: Hakkd/GFT-Practicum
        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);
                }

            }
        }
コード例 #2
0
ファイル: ShopNightTest.cs プロジェクト: Hakkd/GFT-Practicum
 public ShopNightTest()
 {
     this.Shop = new Shop(new Night());
 }