Ejemplo n.º 1
0
 public WashTunnel(
     IMotherboard motherboard,
     IWashStepNotifier notifier)
 {
     _motherboard = motherboard;
     _state       = new FreeState(this, notifier);
 }
Ejemplo n.º 2
0
 public void TransitionState(IWashTunnelState state)
 {
     _state = state;
     if (state is FreeState)
     {
         _motherboard.Transmit(new VehicleReadySignal());
     }
 }
 public void TransitionState(IWashTunnelState state)
 {
     _washTunnel.TransitionState(state);
 }