public TournamentBP(IPlayerStore playerStore, ITeamStore teamStore, ISportStore sportStore, ITournamentStore tournamentStore, ITournamentSystemFactory tournamentSystemFactory)
        {
            if (playerStore == null) throw new ArgumentNullException("playerStore");
            if (teamStore == null) throw new ArgumentNullException("teamStore");
            if (sportStore == null) throw new ArgumentNullException("sportStore");
            if (tournamentSystemFactory == null) throw new ArgumentNullException("tournamentSystemFactory");

            _playerStore = playerStore;
            _teamStore = teamStore;
            _sportStore = sportStore;
            _tournamentStore = tournamentStore;
            _tournamentSystemFactory = tournamentSystemFactory;
        }
示例#2
0
 public TournamentController(IStoreFactory storeFactory) : base(storeFactory)
 {
     _tournamentStore = _storeFactory.TournamentStore;
     _raceStore       = _storeFactory.RaceStore;
 }