Пример #1
0
        public void RunSim()
        {
            string buyChoice = "1";

            while (buyChoice == "1")
            {
                Console.Clear();
                UserInterface.WelcomeMessage();
                List <Coin> deposit = customer.ChooseCoinsToDeposit();
                string      choice  = UserInterface.ChooseSoda();
                sodaMachine.Execute(customer, choice, deposit);
                buyChoice = UserInterface.AskBuyAnotherSoda();
            }
            Console.ReadLine();
        }