public void EnterPincode(int pinCode) { //this is hardcoded for now because i wasnt sure if this needed validation if (pinCode == 1234) { Console.WriteLine("You have entered the correct pin code."); machine.SetMachineState(machine.GetCorrecPinState()); } else { RejectCard(); } }
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."); } }
public void InsertCard() { machine.SetMachineState(machine.GetCardPresentState()); Console.WriteLine("Please enter your pincode:"); Console.WriteLine(); }
public void RejectCard() { machine.SetMachineState(machine.GetNoCardState()); Console.WriteLine("You card has been rejected."); }
public void InsertCard() { Console.WriteLine("Please enter a pin code"); machine.SetMachineState(machine.GetCardPresentState()); }
public void EnterPincode(uint pin) { machine.SetMachineState(machine.GetCorrectPinState()); Console.WriteLine("You have entered the correct pincode."); }