public void testShouldDelegateStatusToView() { var view = new StubStateView(); var controller = new StateController(view); controller.UpdateState(eStateType.BlackTurn); Assert.AreEqual(StatusMessages.BlackTurnMessage, view.m_StatusMessage); }
public FormsGameView() { initalizePlayerToCommand(); registerCommands(); InitializeComponent(); initializeBoardComponent(); initializeActionControllers(); r_BoardController = new BoardController(m_BoardView); r_BoardController.setEventListener(this); r_StateController = new StateController(m_StateBar); r_StatusController = new StatusController(m_StatusView); r_StatisticsController = new StatisticsController(new FormsStatisticsView()); CommandCommander.GetInstance().GetCommand(eCommandType.SaveGame).Enabled = false; }