Beispiel #1
0
        public async Task GetMatchForTournamentAsyncTest()
        {
            IRiotClient client  = new RiotClient(TournamentApiKey);
            const long  matchId = 2035034934L;
            var         match   = await client.GetMatchForTournamentAsync(matchId, "NA0418d-8899c00a-45a9-4898-9b8a-75370a67b9a0", PlatformId.NA1);

            Assert.That(match, Is.Not.Null);
            Assert.That(match.GameId, Is.EqualTo(matchId));
            Assert.That(match.PlatformId, Is.EqualTo(client.PlatformId));
        }
Beispiel #2
0
        public async Task GetMatchForTournamentAsyncTest()
        {
            IRiotClient client = new RiotClient(Region.NA, TournamentApiKey);
            const long matchId = 2035034934L;
            var match = await client.GetMatchForTournamentAsync(matchId, "NA0418d-8899c00a-45a9-4898-9b8a-75370a67b9a0");

            Assert.That(match, Is.Not.Null);
            Assert.That(match.MatchId, Is.EqualTo(matchId));
            Assert.That(match.Region, Is.EqualTo(client.Region));
        }