Esempio n. 1
0
        public static void Main()
        {
            IReader readerer = new ConsoleReaderProvider();
            IWriter writer   = new ConsoleWriteProvider();
            IEngine engine   = new Engine(readerer, writer);

            engine.Start();
        }
        static void Main()
        {
            // TODO: abstract at leest 2 mor provider like thiso ne
            var padhana = new ConsoleReaderProvider();

            var service = new Engine();

            service.Execute(padhana);
        }
        public static void Main()
        {
            // TODO: abstract at leest 2 more provider like this one
            IReaderProvider  reader          = new ConsoleReaderProvider();
            IWriterProvider  writer          = new ConsoleWriterProvider();
            ICommandProvider commandProvider = new CommandProvider();

            var engine = new Engine(reader, writer, commandProvider);

            engine.Start();
        }