public void Start() { Light light = new Light(); Command l = new LightOnCommand(light); SimpleRemoteControl s = new SimpleRemoteControl(); s.SetOnCommand(l); s.ButtonPressed(); }