Esempio n. 1
0
        public MatchResultController(RoundManager roundManager, RoundResponseProvider roundResponseProvider)
        {
            if(roundManager == null)
                throw new ArgumentException("roundManager");

            if(roundResponseProvider == null)
                throw new ArgumentException("roundResponseProvider");

            RoundManager = roundManager;
            RoundResponseProvider = roundResponseProvider;
        }
Esempio n. 2
0
        public RoundController(TournamentManager tournamentManager, RoundManager roundManager, RoundResponseProvider roundResponseProvider)
        {
            if(tournamentManager == null)
                throw new ArgumentNullException("tournamentManager");

            if(roundManager == null)
                throw new ArgumentNullException("roundManager");

            if(roundResponseProvider == null)
                throw new ArgumentNullException("roundResponseProvider");

            TournamentManager = tournamentManager;
            RoundManager = roundManager;
            RoundResponseProvider = roundResponseProvider;
        }