Beispiel #1
0
        public void ChampionsDoesNotReturnNull()
        {
            var sut = new ChampionV3Request(new RequestStringHolder());

            var result = sut.Champions();

            Assert.NotNull(result);
        }
Beispiel #2
0
        public void ChampionByIdReturnChampionIfFound()
        {
            var sut        = new ChampionV3Request(new RequestStringHolder());
            var championId = "105";//should match a champion;

            var result = sut.Champion(championId);

            Assert.NotNull(result);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 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);
 }