// BUG: Fix bug in test 5.
        public static void Main()
        {
            ITestingSystemDatabase database = new ACDatabase();
            IController controller = new Controller(database);
            ICommandManager commandManager = new CommandManager(controller);
            IUserInterface ui = new ConsoleUserInterface();

            IEngine engine = new Engine(ui, commandManager);
            engine.Run();
        }
Exemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            MainForm form = new MainForm();
            CommandManager manager = new CommandManager();

            MainPresenter presenter = new MainPresenter(form, manager);

            Application.Run(form);
        }
        public static void Main()
        {
            IDataBase db = new DataBase();

            ICommandManager commandManager = new CommandManager();

            IInputReader reader = new ConsoleReader();

            IOutputWriter writer = new ConsoleWriter
            {
                AutoFlush = true
            };

            IEngine engine = new EmpiresEngine(db, commandManager, reader, writer);

            engine.Run();
        }