Ejemplo n.º 1
0
        void Start()
        {
            ATMMachine machine = new ATMMachine(2000);

            machine.InsertCard();
            machine.RejectCard();
            machine.InsertCard();
            machine.EnterPincode(1234);
            machine.WithdrawCash(1500);
            machine.InsertCard();
            machine.EnterPincode(1234);
            machine.WithdrawCash(750);
            Console.ReadKey();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            ATMMachine machine = new ATMMachine(2000);

            machine.InsertCard();
            machine.RejectCard();

            machine.InsertCard();
            machine.EnterPincode(1234);
            machine.WithdrawCash(1500);

            machine.InsertCard();
            machine.EnterPincode(1234);
            machine.WithdrawCash(750);
            Console.ReadLine();
        }