public AdminService(ILogger <AdminService> logger, ILookupRepository lookupRepository, ISummonerInfoRepository summonerInfoRepository, ITeamPlayerRepository teamPlayerRepository, ITeamRosterRepository teamRosterRepository, ITeamCaptainRepository teamCaptainRepository, IRosterService rosterService, ITierDivisionMapper tierDivisionMapper, IPlayerStatsRepository playerStatsRepository, ISeasonInfoRepository seasonInfoRepository) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _lookupRepository = lookupRepository ?? throw new ArgumentNullException(nameof(lookupRepository)); _summonerInfoRepository = summonerInfoRepository ?? throw new ArgumentNullException(nameof(summonerInfoRepository)); _teamPlayerRepository = teamPlayerRepository ?? throw new ArgumentNullException(nameof(teamPlayerRepository)); _teamRosterRepository = teamRosterRepository ?? throw new ArgumentNullException(nameof(teamRosterRepository)); _teamCaptainRepository = teamCaptainRepository ?? throw new ArgumentNullException(nameof(teamCaptainRepository)); _rosterService = rosterService ?? throw new ArgumentNullException(nameof(rosterService)); _tierDivisionMapper = tierDivisionMapper ?? throw new ArgumentNullException(nameof(tierDivisionMapper)); _playerStatsRepository = playerStatsRepository ?? throw new ArgumentNullException(nameof(playerStatsRepository)); _seasonInfoRepository = seasonInfoRepository ?? throw new ArgumentNullException(nameof(playerStatsRepository)); }
public RosterService(ISummonerMapper summonerMapper, ISummonerInfoRepository summonerInfoRepository, ITeamPlayerRepository teamPlayerRepository, ITeamRosterRepository teamRosterRepository, ITeamCaptainRepository teamCaptainRepository, ISeasonInfoRepository seasonInfoRepository, IDivisionRepository divisionRepository, IPlayerStatsRepository playerStatsRepository, IPlayerStatsMapper playerStatsMapper, IAlternateAccountRepository alternateAccountRepository, IMatchDetailRepository matchDetailRepository, ISummonerRoleMapper roleMapper, IMatchMvpRepository matchMvpRepository, IScheduleRepository scheduleRepository, IScheduleMapper scheduleMapper) { _summonerMapper = summonerMapper ?? throw new ArgumentNullException(nameof(summonerMapper)); _summonerInfoRepository = summonerInfoRepository ?? throw new ArgumentNullException(nameof(summonerInfoRepository)); _teamPlayerRepository = teamPlayerRepository ?? throw new ArgumentNullException(nameof(teamPlayerRepository)); _teamRosterRepository = teamRosterRepository ?? throw new ArgumentNullException(nameof(teamRosterRepository)); _teamCaptainRepository = teamCaptainRepository ?? throw new ArgumentNullException(nameof(teamCaptainRepository)); _seasonInfoRepository = seasonInfoRepository ?? throw new ArgumentNullException(nameof(seasonInfoRepository)); _divisionRepository = divisionRepository ?? throw new ArgumentNullException(nameof(divisionRepository)); _playerStatsRepository = playerStatsRepository ?? throw new ArgumentNullException(nameof(playerStatsRepository)); _playerStatsMapper = playerStatsMapper ?? throw new ArgumentNullException(nameof(playerStatsMapper)); _alternateAccountRepository = alternateAccountRepository ?? throw new ArgumentNullException(nameof(alternateAccountRepository)); _matchDetailRepository = matchDetailRepository ?? throw new ArgumentNullException(nameof(matchDetailRepository)); _roleMapper = roleMapper ?? throw new ArgumentNullException(nameof(roleMapper)); _matchMvpRepository = matchMvpRepository ?? throw new ArgumentNullException(nameof(matchMvpRepository)); _scheduleRepository = scheduleRepository ?? throw new ArgumentNullException(nameof(scheduleRepository)); _scheduleMapper = scheduleMapper ?? throw new ArgumentNullException(nameof(scheduleMapper)); }