Example #1
0
        public static void UserOptions()
        {
            #region User Input and call Business Logic

            CommonOptions();
            //Call Business Logic

            VendingMachine_BL objVending = new VendingMachine_BL(enteredCoin);
            objVending.CheckValidCoin();

            Console.ReadLine();
            #endregion
        }
Example #2
0
        public void UserOptions_AddCoin()
        {
            #region User Input and call Business Logic
            CommonOptions();
            //Call Business Logic
            while (true)
            {
                objVending.CheckValidCoin(enteredCoin);

                Console.WriteLine($"Do you want to enter more coins : Y/N");
                string moreCoin = Console.ReadLine();
                if (moreCoin.Equals("N"))
                {
                    break;
                }

                CommonOptions();
            }
            #endregion
        }