Example #1
0
        public static void Main()
        {
            var fileLogger       = new FileLogger();
            var dataBase         = new Database();
            var commandFactory   = new CommandsFactory(dataBase);
            var commandProcessor = new CommandProcessor(commandFactory);

            var engine = new Engine(fileLogger, commandProcessor);

            var provider = new EngineProvider(engine);

            provider.Initialize();
        }
Example #2
0
        public static void Main()
        {
            var modelsFactory = new ModelsFactory();
            var database      = new Database();

            var commandsFactory = new CommandsFactory(database, modelsFactory);

            var commandProcessor = new CommandProcessor(commandsFactory);

            var fileLogger = new FileLogger();

            var engineReader = new ConsoleReaderProvider();

            var engineWriter = new ConsoleWriterProvider();

            var engine = new Engine(fileLogger, commandProcessor, engineReader, engineWriter);

            var provider = new EngineProvider(engine);

            provider.StartEngine();
        }