protected CommandStreamProcessor Factory_CommandStreamProcessor(string inputFilePath) { var fileStreamInput = new FileStreamInput(inputFilePath); var commandStreamProcessor = new CommandStreamProcessor(fileStreamInput, TestConsoleOutput, new CommandHandler(TestConsoleOutput)); return(commandStreamProcessor); }
static void Main(string[] args) { var consoleOutput = new ConsoleOutput(); var consoleInput = new ConsoleInput(); var commandHandler = new CommandHandler(consoleOutput); var commandStreamProcessor = new CommandStreamProcessor(consoleInput, consoleOutput, commandHandler); commandStreamProcessor.ProcessCommands(); }
public static IOutput GetOutput(this CommandStreamProcessor canvasCommandStreamProcessor) { var output = PrivateMemberAccessor.Factory(canvasCommandStreamProcessor, "_output").GetField <IOutput>(); return(output); }