Exemplo n.º 1
0
 public EngineModule(ConsoleReaderProvider consoleReaderProvider,
                     ConsoleWriterProvider consoleWriterProvider, CommandParserProvider commandParserProvider)
 {
     this.consoleReaderProvider = consoleReaderProvider;
     this.consoleWriterProvider = consoleWriterProvider;
     this.commandParserProvider = commandParserProvider;
 }
Exemplo n.º 2
0
        public static void Main()
        {
            var readerProvider = new ConsoleReaderProvider();
            var writerProvider = new ConsoleWriterProvider();
            var parserProvider = new CommandParserProvider();
            var engine         = new Engine(readerProvider, writerProvider, parserProvider);

            engine.Run();
        }
Exemplo n.º 3
0
        public static void Main()
        {
            IReader reader = new ConsoleReaderProvider();
            IWriter writer = new ConsoleWriterProvider();
            IParser parser = new CommandParserProvider();

            Engine engine = new Engine(reader, writer, parser);

            engine.Start();
        }