Esempio n. 1
0
        public void Go()
        {
            Console.WriteLine("Do you want to Purchase?");
            string response = Console.ReadLine();

            if (response == "y")
            {
                mediator.Handle(ProcessType.Purchase);
            }
            else
            {
                mediator.Handle(ProcessType.Exit);
            }
        }
Esempio n. 2
0
        public void Go()
        {
            Console.WriteLine("Bye the item now?");
            string response = Console.ReadLine();

            if (response == "y")
            {
                Console.WriteLine("Thanks for your purchase");
            }

            mediator.Handle(ProcessType.Exit);
        }