Esempio n. 1
0
 public RetrieveHistoryCommand(IHistoryController historyController, IList <string> args)
 {
     this.historyController = historyController;
     this.Arguments         = args;
 }
 public BasicCalculator()
 {
     this.historyController  = new HistoryController();
     this.memoryController   = new MemoryController();
     this.commandInterpreter = new CommandInterpreter(this.historyController, this.memoryController);
 }
Esempio n. 3
0
 public AddOperationCommand(IHistoryController historyController, IList <string> args)
 {
     this.historyController = historyController;
     this.Arguments         = args;
 }
 public CommandInterpreter(IHistoryController historyController, IMemoryController memoryController)
 {
     this.HistoryController = historyController;
     this.MemoryController  = memoryController;
 }