Exemple #1
0
        public async Task CreateTournamentCodeAsyncTest()
        {
            IRiotClient   client = new RiotClient(GetTournamentSettings());
            List <string> codes  = await client.CreateTournamentCodeAsync(2198);

            Assert.That(codes, Is.Not.Null.And.Not.Empty);
            Assert.That(codes.Count, Is.EqualTo(1));
        }
Exemple #2
0
        public async Task CreateTournamentCodeAsyncTest()
        {
            IRiotClient client = new RiotClient(Region.NA, TournamentApiKey);
            var codes = await client.CreateTournamentCodeAsync(3092);

            Assert.That(codes, Is.Not.Null.And.Not.Empty);
            Assert.That(codes.Count, Is.EqualTo(1));
        }
Exemple #3
0
        public async Task CreateTournamentCodeAsyncTest_WithArguments()
        {
            IRiotClient client = new RiotClient(Region.NA, TournamentApiKey);
            var codes = await client.CreateTournamentCodeAsync(3092, 1,
                new List<long> { 35870943L, 32153637L, 31220286L, 37431081L, 20934656L, 30545906L, 32550537L, 38722060L },
                MapType.HOWLING_ABYSS, PickType.ALL_RANDOM, SpectatorType.LOBBYONLY, 4, "test");

            Assert.That(codes, Is.Not.Null.And.Not.Empty);
            Assert.That(codes.Count, Is.EqualTo(1));
        }
Exemple #4
0
        public async Task CreateTournamentCodeAsyncTest_WithArguments()
        {
            IRiotClient   client = new RiotClient(GetTournamentSettings());
            List <string> codes  = await client.CreateTournamentCodeAsync(2198, 2,
                                                                          new List <string> {
                rndmInternetManId, disqueJockeyId, denverId, choGodId, zarkraId, razardId, angry5RenegadoId, boostedTopLanerId, xaeiId, zeractleId
            },
                                                                          MapType.HOWLING_ABYSS, PickType.ALL_RANDOM, SpectatorType.LOBBYONLY, 4, "test", CancellationToken.None);

            Assert.That(codes, Is.Not.Null.And.Not.Empty);
            Assert.That(codes.Count, Is.EqualTo(2));
        }
Exemple #5
0
        public async Task CreateTournamentCodeAsyncTest_WithArguments()
        {
            IRiotClient   client = new RiotClient(GetTournamentSettings());
            List <string> codes  = await client.CreateTournamentCodeAsync(2198, 2,
                                                                          new List <long> {
                35870943L, 32153637L, 31220286L, 37431081L, 20934656L, 30545906L, 32550537L, 38722060L
            },
                                                                          MapType.HOWLING_ABYSS, PickType.ALL_RANDOM, SpectatorType.LOBBYONLY, 4, "test", CancellationToken.None);

            Assert.That(codes, Is.Not.Null.And.Not.Empty);
            Assert.That(codes.Count, Is.EqualTo(2));
        }
Exemple #6
0
        public async Task CreateTournamentCodeAsyncTest_WithObject()
        {
            IRiotClient client = new RiotClient(GetTournamentSettings());

            List <string> codes = await client.CreateTournamentCodeAsync(new TournamentCode
            {
                TournamentId = 2198,
                Participants = new ListOfString {
                    rndmInternetManId, disqueJockeyId, denverId, choGodId, zarkraId, razardId, angry5RenegadoId, boostedTopLanerId, xaeiId, zeractleId
                },
                Map        = MapType.TWISTED_TREELINE,
                PickType   = PickType.TOURNAMENT_DRAFT,
                Spectators = SpectatorType.NONE,
                TeamSize   = 4,
                MetaData   = "test"
            }, 2, CancellationToken.None);

            Assert.That(codes, Is.Not.Null.And.Not.Empty);
            Assert.That(codes.Count, Is.EqualTo(2));
        }
Exemple #7
0
        public async Task CreateTournamentCodeAsyncTest_WithObject()
        {
            IRiotClient client = new RiotClient(GetTournamentSettings());

            List <string> codes = await client.CreateTournamentCodeAsync(new TournamentCode
            {
                TournamentId = 2198,
                Participants = new ListOfLong {
                    35870943L, 32153637L, 31220286L, 37431081L, 20934656L, 30545906L, 32550537L, 38722060L, 21204597L, 20028460L
                },
                Map        = MapType.TWISTED_TREELINE,
                PickType   = PickType.TOURNAMENT_DRAFT,
                Spectators = SpectatorType.NONE,
                TeamSize   = 4,
                MetaData   = "test"
            }, 2, CancellationToken.None);

            Assert.That(codes, Is.Not.Null.And.Not.Empty);
            Assert.That(codes.Count, Is.EqualTo(2));
        }