Example #1
0
        static void consoleTesting(bool loop, string name)
        {
            MainMenuConsoleView        mView = new MainMenuConsoleView();
            ConnectToServerConsoleView cView = new ConnectToServerConsoleView();

            cView.playerName = name;
            IClientConnectionManager cManager = new ClientConnectionManager();

            cManager.FeedbackWriter = new DisputeCommon.FormFeedback();
            MainMenuController        mController = new MainMenuController(cManager, mView, cView);
            ConnectToServerController cController = ConnectToServerController.getInstance(cManager);

            connectTest(cView);
            createGameTest(mView);
            //cView.sendMessage(Messages.ViewMessage.connect);
            //mView.sendMessage(MainMenuMessages.CreateGame);
            //cView2.sendMessage(Messages.ViewMessage.connect);
            //mView2.sendMessage(MainMenuMessages.CreateGame);

            while (loop)
            {
                ;
            }
        }
Example #2
0
 static void connectTest(ConnectToServerConsoleView view)
 {
     view.sendMessage(Messages.LobbyViewMessage.connect);
 }