Beispiel #1
0
 public void Execute()
 {
     _garageDoor.LightOn();
     _garageDoor.Down();
     _garageDoor.Stop();
     _garageDoor.LightOff();
 }
        public void Execute()
        {
            _garageDoor.Up();
            _garageDoor.LightOn();

            Console.WriteLine("Garage door is open");
        }
 public void Execute()
 {
     garageDoor.Stop();
     garageDoor.On();
     garageDoor.LightOn();
 }
 public void Undo()
 {
     garageDoor.Stop();
     garageDoor.On();
     garageDoor.LightOn();
 }
 public void Undo()
 {
     _garageDoor.Up();
     _garageDoor.LightOn();
 }
Beispiel #6
0
 public void Execute()
 {
     _garageDoor.Up();
     _garageDoor.LightOn();
 }