public Client() { _receiver = new Receiver() { x = 10, y = 11 }; _invoker = new Invoker( new AddCommand(_receiver), new SubtractCommand(_receiver)); }
protected CommandBase(Receiver receiver) { _receiver = receiver; }
public SubtractCommand(Receiver r) : base(r) { }
public AddCommand(Receiver r) : base(r) { }