public override bool Dispense() { Console.WriteLine("Dispense succes"); NoCoinState noCoin = new NoCoinState(Machine); Machine.SetMachineState(noCoin); return(true); }
public override bool EjectCoin() { Console.WriteLine("Coin ejected."); NoCoinState noCoin = new NoCoinState(Machine); Machine.SetMachineState(noCoin); return(true); }