public void ChampionsDoesNotReturnNull() { var sut = new ChampionV3Request(new RequestStringHolder()); var result = sut.Champions(); Assert.NotNull(result); }
public void ChampionByIdReturnChampionIfFound() { var sut = new ChampionV3Request(new RequestStringHolder()); var championId = "105";//should match a champion; var result = sut.Champion(championId); Assert.NotNull(result); }
public void ChampionByIdReturnNullIfNotFound() { var sut = new ChampionV3Request(new RequestStringHolder()); var championId = "400000000";//should not match a champion; var result = sut.Champion(championId); Assert.Null(result); }
public ApiRequest(RequestStringHolder rsh) { requestStringHolder = rsh; ChampionMastery = new ChampionMasteryV3Request(rsh); Champion = new ChampionV3Request(rsh); League = new LeagueV3Request(rsh); Match = new MatchV3Request(rsh); Summoner = new SummonerV3Request(rsh); }