public MatchResultController(RoundManager roundManager, RoundResponseProvider roundResponseProvider) { if (roundManager == null) { throw new ArgumentException("roundManager"); } if (roundResponseProvider == null) { throw new ArgumentException("roundResponseProvider"); } RoundManager = roundManager; RoundResponseProvider = roundResponseProvider; }
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; }