public void CorrectStringMatchesByMatchIdByTournamentCode() { var sut = new MatchV3StringHolder(new EuWestStringHolder()); var tournamentCode = "10"; var matchId = "11"; var expected = $"{euRoot}/lol/match/v3/matches/{matchId}/by-tournament-code/{tournamentCode}{apiKeySuffix}"; }
public void CorrectStringMatchesByTournamentCode() { var sut = new MatchV3StringHolder(new EuWestStringHolder()); var tournamentCode = "10"; var expected = $"{euRoot}/lol/match/v3/matches/by-tournament-code/{tournamentCode}/ids{apiKeySuffix}"; var result = sut.MatchesByTournamentCode(tournamentCode); Assert.Equal(expected, result); }
public void CorrectStringMatchlistByAccountId() { var sut = new MatchV3StringHolder(new EuWestStringHolder()); var accountId = "10"; var expected = $"{euRoot}/lol/match/v3/matchlists/by-account/{accountId}{apiKeySuffix}"; var result = sut.MatchListByAccountId(accountId); Assert.Equal(expected, result); }
public void CorrectStringTimelineByMatchId() { var sut = new MatchV3StringHolder(new EuWestStringHolder()); var matchId = "10"; var expected = $"{euRoot}/lol/match/v3/timelines/by-match/{matchId}{apiKeySuffix}"; var result = sut.TimelinesByMatchId(matchId); Assert.Equal(expected, result); }
public RequestStringHolder() { EuWestStringHolder = new EuWestStringHolder(); ChampionMastery = new ChampionMasteryV3StringHolder(EuWestStringHolder); Champion = new ChampionV3StringHolder(EuWestStringHolder); League = new LeagueV3StringHolder(EuWestStringHolder); LolStatus = new LolStatusV3StringHolder(EuWestStringHolder); Match = new MatchV3StringHolder(EuWestStringHolder); Spectator = new SpectatorV3StringHolder(EuWestStringHolder); Summoner = new SummonerV3StringHolder(EuWestStringHolder); }