public AccountService(ILogger <AccountService> logger, ISummonerMapper summonerMapper, IAlternateAccountMapper alternateAccountMapper,
                       ISummonerInfoRepository summonerInfoRepository, IAlternateAccountRepository alternateAccountRepository,
                       IRequestedSummonerRepository requestedSummonerRepository, ITeamPlayerRepository teamPlayerRepository,
                       ITeamRosterRepository teamRosterRepository, ISeasonInfoRepository seasonInfoRepository, IBlacklistRepository blacklistRepository)
 {
     _logger = logger ??
               throw new ArgumentNullException(nameof(logger));
     _summonerMapper = summonerMapper ??
                       throw new ArgumentNullException(nameof(summonerMapper));
     _alternateAccountMapper = alternateAccountMapper ??
                               throw new ArgumentNullException(nameof(alternateAccountMapper));
     _summonerInfoRepository = summonerInfoRepository ??
                               throw new ArgumentNullException(nameof(summonerInfoRepository));
     _alternateAccountRepository = alternateAccountRepository ??
                                   throw new ArgumentNullException(nameof(alternateAccountRepository));
     _requestedSummonerRepository = requestedSummonerRepository ??
                                    throw new ArgumentNullException(nameof(requestedSummonerRepository));
     _teamPlayerRepository = teamPlayerRepository ??
                             throw new ArgumentNullException(nameof(teamPlayerRepository));
     _teamRosterRepository = teamRosterRepository ??
                             throw new ArgumentNullException(nameof(teamRosterRepository));
     _seasonInfoRepository = seasonInfoRepository ??
                             throw new ArgumentNullException(nameof(seasonInfoRepository));
     _blacklistRepository = blacklistRepository ??
                            throw new ArgumentNullException(nameof(blacklistRepository));
 }
Ejemplo n.º 2
0
 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 PlayoffService(IPlayoffSeedRepository playoffSeedRepository, ITeamRosterRepository teamRosterRepository, ISeasonInfoRepository seasonInfoRepository,
                       IDivisionRepository divisionRepository, IScheduleRepository scheduleRepository, IScheduleService scheduleService, ILogger logger)
 {
     _playoffSeedRepository =
         playoffSeedRepository ?? throw new ArgumentNullException(nameof(playoffSeedRepository));
     _teamRosterRepository = teamRosterRepository ?? throw new ArgumentNullException(nameof(teamRosterRepository));
     _seasonInfoRepository = seasonInfoRepository ?? throw new ArgumentNullException(nameof(seasonInfoRepository));
     _divisionRepository   = divisionRepository ?? throw new ArgumentNullException(nameof(divisionRepository));
     _scheduleRepository   = scheduleRepository ?? throw new ArgumentNullException(nameof(scheduleRepository));
     _scheduleService      = scheduleService ?? throw new ArgumentNullException(nameof(scheduleService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
        //Skarner Alston Reztip pentakill 5/29/2019
        //Perfect Game ABCDE vs TDK semi finals 10/17/2019

        public PlayerProfileService(ISummonerInfoRepository summonerInfoRepository, IAchievementRepository achievementRepository,
                                    ITeamPlayerRepository teamPlayerRepository, ITeamRosterRepository teamRosterRepository, IAlternateAccountRepository alternateAccountRepository,
                                    IPlayerStatsRepository playerStatsRepository, ISeasonInfoRepository seasonInfoRepository, IPlayerStatsMapper playerStatsMapper,
                                    IAlternateAccountMapper alternateAccountMapper, ITierDivisionMapper tierDivisionMapper, IMatchDetailRepository matchDetailRepository, ILogger <PlayerProfileService> logger)
        {
            _summonerInfoRepository     = summonerInfoRepository ?? throw new ArgumentNullException(nameof(summonerInfoRepository));
            _achievementRepository      = achievementRepository ?? throw new ArgumentNullException(nameof(achievementRepository));
            _teamPlayerRepository       = teamPlayerRepository ?? throw new ArgumentNullException(nameof(teamPlayerRepository));
            _teamRosterRepository       = teamRosterRepository ?? throw new ArgumentNullException(nameof(teamRosterRepository));
            _alternateAccountRepository = alternateAccountRepository ?? throw new ArgumentNullException(nameof(alternateAccountRepository));
            _playerStatsRepository      = playerStatsRepository ?? throw new ArgumentNullException(nameof(playerStatsRepository));
            _seasonInfoRepository       = seasonInfoRepository ?? throw new ArgumentNullException(nameof(seasonInfoRepository));
            _playerStatsMapper          = playerStatsMapper ?? throw new ArgumentNullException(nameof(playerStatsMapper));
            _alternateAccountMapper     = alternateAccountMapper ?? throw new ArgumentNullException(nameof(alternateAccountMapper));
            _tierDivisionMapper         = tierDivisionMapper ?? throw new ArgumentNullException(nameof(tierDivisionMapper));
            _matchDetailRepository      = matchDetailRepository ?? throw new ArgumentNullException(nameof(matchDetailRepository));
            _logger = logger ?? throw new ArgumentNullException(nameof(logger));
        }
Ejemplo n.º 5
0
 public ScheduleService(ILogger <ScheduleService> logger, ITeamRosterRepository teamRosterRepository, ISeasonInfoRepository seasonInfoRepository,
                        IDivisionRepository divisionRepository, IScheduleRepository scheduleRepository, IScheduleMapper scheduleMapper,
                        IRosterService rosterService)
 {
     _logger = logger ??
               throw new ArgumentNullException(nameof(logger));
     _teamRosterRepository = teamRosterRepository ??
                             throw new ArgumentNullException(nameof(teamRosterRepository));
     _seasonInfoRepository = seasonInfoRepository ??
                             throw new ArgumentNullException(nameof(seasonInfoRepository));
     _divisionRepository = divisionRepository ??
                           throw new ArgumentNullException(nameof(divisionRepository));
     _scheduleRepository = scheduleRepository ??
                           throw new ArgumentNullException(nameof(scheduleRepository));
     _scheduleMapper = scheduleMapper ??
                       throw new ArgumentNullException(nameof(scheduleMapper));
     _rosterService = rosterService ?? throw new ArgumentNullException(nameof(rosterService));
 }
Ejemplo n.º 6
0
 public MatchDetailService(ILogger <MatchDetailService> logger, IEmailService emailService, IPlayerStatsRepository playerStatsRepository, ISummonerInfoRepository summonerInfoRepository,
                           ISeasonInfoRepository seasonInfoRepository, IMatchDetailRepository matchDetailRepository, IMatchMvpRepository matchMvpRepository,
                           IChampionStatsRepository championStatsRepository, IScheduleService scheduleService, ITeamPlayerRepository teamPlayerRepository, ITeamRosterRepository teamRosterRepository,
                           IAchievementRepository achievementRepository, ILookupRepository lookupRepository)
 {
     _logger                  = logger ?? throw new ArgumentNullException(nameof(logger));
     _emailService            = emailService ?? throw new ArgumentNullException(nameof(emailService));
     _playerStatsRepository   = playerStatsRepository ?? throw new ArgumentNullException(nameof(playerStatsRepository));
     _summonerInfoRepository  = summonerInfoRepository ?? throw new ArgumentNullException(nameof(summonerInfoRepository));
     _seasonInfoRepository    = seasonInfoRepository ?? throw new ArgumentNullException(nameof(seasonInfoRepository));
     _matchDetailRepository   = matchDetailRepository ?? throw new ArgumentNullException(nameof(matchDetailRepository));
     _matchMvpRepository      = matchMvpRepository ?? throw new ArgumentNullException(nameof(matchMvpRepository));
     _championStatsRepository = championStatsRepository ?? throw new ArgumentNullException(nameof(championStatsRepository));
     _scheduleService         = scheduleService ?? throw new ArgumentNullException(nameof(scheduleService));
     _teamPlayerRepository    = teamPlayerRepository ?? throw new ArgumentNullException(nameof(teamPlayerRepository));
     _teamRosterRepository    = teamRosterRepository ?? throw new ArgumentNullException(nameof(teamRosterRepository));
     _achievementRepository   = achievementRepository ?? throw new ArgumentNullException(nameof(achievementRepository));
     _lookupRepository        = lookupRepository ?? throw new ArgumentNullException(nameof(lookupRepository));
 }
 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));
 }
Ejemplo n.º 8
0
 public TeamRosterController(ITeamRosterRepository teamRosterRepository)
 {
     this.teamRosterRepository = teamRosterRepository;
 }
        //private readonly IMatchDetailRepository _matchDetailRepository;
        //private readonly IMatchMvpRepository _matchMvpRepository;
        //private readonly IChampionStatsRepository _championStatsRepository;
        //private readonly ILookupRepository _lookupRepository;
        //private readonly ISummonerInfoRepository _summonerInfoRepository;

        public GameInfoService(IScheduleRepository scheduleRepository, ITeamRosterRepository teamRosterRepository)
        {
            _scheduleRepository   = scheduleRepository ?? throw new ArgumentNullException(nameof(scheduleRepository));
            _teamRosterRepository = teamRosterRepository ?? throw new ArgumentNullException(nameof(teamRosterRepository));
        }