Пример #1
0
        public void SetAmountInMachine(uint amount)
        {
            machine.AmountInMachine = amount;

            if (amount > 0)
            {
                machine.SetMachineState(machine.GetNoCardState());
                Console.WriteLine("The new amount has been set.");
            }
            else
            {
                Console.WriteLine("The amount in the machine is still 0.");
            }
        }
Пример #2
0
 public void RejectCard()
 {
     machine.SetMachineState(machine.GetNoCardState());
     Console.WriteLine("You card has been rejected.");
 }
Пример #3
0
 public void RejectCard()
 {
     Console.WriteLine("Your card has been rejected.");
     machine.SetMachineState(machine.GetNoCardState());// Do i need to set the machine to something here too ?
 }