Beispiel #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            updateLabel("loading");
            RiotSharp.FeaturedGamesEndpoint.FeaturedGames testgame = ApiFetcher.api.GetFeaturedGames(RiotSharp.Region.euw);
            string sname = testgame.GameList[0].Participants[0].SummonerName;

            ApiFetcher.CURRENT_SUMMONER = ApiFetcher.api.GetSummoner(RiotSharp.Region.euw, sname).Id;
            //ApiFetcher.CURRENT_SUMMONER = 60077041;
            int result = ApiFetcher.getData();

            ApiFetcher.getData(1, 1);
        }
        public void getDataTest()
        {
            Console.WriteLine("test");
            RiotSharp.FeaturedGamesEndpoint.FeaturedGames testgame = ApiFetcher.api.GetFeaturedGames(Region.euw);
            string sname = testgame.GameList[0].Participants[0].SummonerName;

            ApiFetcher.CURRENT_SUMMONER = ApiFetcher.api.GetSummoner(Region.euw, sname).Id;
            //ApiFetcher.CURRENT_SUMMONER = 60077041;
            int result = ApiFetcher.getData();

            ApiFetcher.getData(1, 1);
            Assert.IsTrue(true);
            // TODO: Assertionen zu Methode ApiFetcherTest.getDataTest() hinzufügen
        }