public GameServiceController(IUserRepository userRepository, IGameService gameService, IGameReportService gameReportService) : base(userRepository) { Check.Require(gameService != null, "gameService may not be null"); Check.Require(gameReportService != null, "gameReportService may not be null"); this.gameService = gameService; this.gameReportService = gameReportService; }
/// <summary> /// Initializes a new instance of the <see cref="TournamentsController"/> class. /// </summary> /// <param name="tournamentService"> The tournament service. </param> /// <param name="gameService"> The game service. </param> /// <param name="gameReportService"> The game report service. </param> public TournamentsController( ITournamentService tournamentService, IGameService gameService, IGameReportService gameReportService) { _tournamentService = tournamentService; _gameService = gameService; _gameReportService = gameReportService; }
/// <summary> /// Initializes a new instance of the <see cref="GameReportsController"/> class. /// </summary> /// <param name="gameReportService">Instance of a class which implements <see cref="IGameReportService"/>.</param> public GameReportsController(IGameReportService gameReportService) { _gameReportService = gameReportService; }