Example #1
0
        public void GetChampionMastery_Test()
        {
            const int lucianId        = 236;
            var       championMastery = api.GetChampionMastery(Platform.NA1, id, lucianId);

            Assert.IsNotNull(championMastery);
            Assert.AreEqual(id, championMastery.PlayerId);
            Assert.AreEqual(lucianId, championMastery.ChampionId);
            Assert.AreEqual(6, championMastery.ChampionLevel);
        }
Example #2
0
 public int GetLevel(Summoner summoner, Champion champion)
 {
     return(api.GetChampionMastery(RiotSharpAddition.RegionToPlatform(summoner.Region), summoner.Id, Convert.ToInt32(champion.Id)).ChampionLevel);
 }