public void CorrectStringSummonersBySummonerId() { var sut = new SummonerV3StringHolder(new EuWestStringHolder()); var summonerId = "10"; var expected = $"{euRoot}/lol/summoner/v3/summoners/{summonerId}{apiKeySuffix}"; var result = sut.SummonerBySummonerId(summonerId); Assert.Equal(expected, result); }
public void CorrectStringSummonersByName() { var sut = new SummonerV3StringHolder(new EuWestStringHolder()); var summonerName = "name"; var expected = $"{euRoot}/lol/summoner/v3/summoners/by-name/{summonerName}{apiKeySuffix}"; var result = sut.SummonersByName(summonerName); 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); }