Beispiel #1
0
        public override bool Dispense()
        {
            Console.WriteLine("Dispense succes");

            NoCoinState noCoin = new NoCoinState(Machine);

            Machine.SetMachineState(noCoin);

            return(true);
        }
Beispiel #2
0
        public override bool EjectCoin()
        {
            Console.WriteLine("Coin ejected.");

            NoCoinState noCoin = new NoCoinState(Machine);

            Machine.SetMachineState(noCoin);

            return(true);
        }