Example #1
0
        public TableBusinessModel()
        {
            _playerBusinessModel = new PlayerBusinessModel();
            _tableRepository     = new TableRepository(new SessionBusinessModel());

            EventAggregator.Resolve <PlayerJoinedTable>().Subscribe(PlayerJoinedTableEvent);
            EventAggregator.Resolve <PlayerLeftTable>().Subscribe(PlayerLeftTableEvent);
        }
Example #2
0
        public MatchBusinessModel()
        {
            _matchRepository     = new MatchRepository();
            _tableBusinessModel  = new TableBusinessModel();
            _playerBusinessModel = new PlayerBusinessModel();

            EventAggregator.Resolve <MatchEnded>().Subscribe(MatchEndedTableEvent);
        }