Exemple #1
0
        protected CommandStreamProcessor Factory_CommandStreamProcessor(string inputFilePath)
        {
            var fileStreamInput        = new FileStreamInput(inputFilePath);
            var commandStreamProcessor =
                new CommandStreamProcessor(fileStreamInput, TestConsoleOutput,
                                           new CommandHandler(TestConsoleOutput));

            return(commandStreamProcessor);
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        public static IOutput GetOutput(this CommandStreamProcessor canvasCommandStreamProcessor)
        {
            var output = PrivateMemberAccessor.Factory(canvasCommandStreamProcessor, "_output").GetField <IOutput>();

            return(output);
        }