Exemple #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (CoffeeShop game = new CoffeeShop())
     {
         game.Run();
     }
 }
        public static void Main()
        {
            int    amountOfVanilla, amountOfChocolate, paymentCredit;
            string paymentType;

            Console.WriteLine("Please enter amount of Vanilla Coffee you want to buy : ");
            amountOfVanilla = int.Parse(Console.ReadLine());

            Console.WriteLine("Please enter amount of Chocolate Coffee you want to buy : ");
            amountOfChocolate = int.Parse(Console.ReadLine());

            Console.WriteLine("Please enter your payment method (debit/hand) : ");
            paymentType = (Console.ReadLine());

            Console.WriteLine("Please enter currency amount you are paying : ");
            paymentCredit = int.Parse(Console.ReadLine());

            CoffeeShop customerOne = new CoffeeShop(amountOfVanilla, amountOfChocolate, paymentType, paymentCredit);
        }