Exemplo n.º 1
0
        public static Summoner GetSummonerInfo(string region, string summonerName)
        {
            string   summonerUrl     = RiotUrl.GetSummonerUrl("euw1", summonerName);
            Summoner currentSummoner = JsonSettings.GetStats <Summoner>(summonerUrl);

            return(currentSummoner);
        }
Exemplo n.º 2
0
        public void Test_GetTotalMasteryScoreUrl_Pass()
        {
            var actual   = RiotUrl.GetTotalMasteryScoreUrl("euw1", "3534754700");
            var expected = ("https://euw1.api.riotgames.com/lol/champion-mastery/v3/scores/by-summoner/3534754700?api_key=" + _apiKey);

            Assert.AreEqual(actual, expected);
        }
Exemplo n.º 3
0
        public void Test_GetMatchHistUrl_Fail()
        {
            var actual   = RiotUrl.GetMatchHistUrl("euw1", "22097197");
            var expected = ("https://euw1.api.riotgames.com/lol/match/v3/matchlists/by-account/22097198/recent?api_key=" + _apiKey);

            Assert.AreNotEqual(actual, expected);
        }
Exemplo n.º 4
0
        public void Test_GetMatchUrl_fail()
        {
            var actual   = RiotUrl.GetMatchUrl("euw1", "3534917828");
            var expected = ("https://euw1.api.riotgames.com/lol/match/v3/matches/3534917827?api_key=" + _apiKey);

            Assert.AreNotEqual(actual, expected);
        }
Exemplo n.º 5
0
        public void Test_GetSummonerUrl_Fail()
        {
            var actual   = RiotUrl.GetSummonerUrl("euw1", "MLPQuadzilla");
            var expected = ("https://euw1.api.riotgames.com/lol/summoner/v3/summoners/by-name/Notorious%20Nutz?api_key=" + _apiKey);

            Assert.AreNotEqual(actual, expected);
        }