public CommandLineInterface( ICommandLineProcessorService commandLineProcessor, IInputHandlerService inputHandler, ICommandHistoryWriter historyWriter) { this.commandLineProcessor = commandLineProcessor; this.inputHandler = inputHandler; this.inputHandler.Processor = this.commandLineProcessor; this.historyWriter = historyWriter; keyedCharacters = new List <char>(); keyedCharacterIndex = -1; Console.TreatControlCAsInput = true; }
public MathCommand(ICommandHistoryWriter commandHistoryAccess) { this.commandHistoryAccess = commandHistoryAccess; }