public TournamentTest(Xunit.Abstractions.ITestOutputHelper output)
 {
     client = new ChallongeV1Connection(Secrets.ChallongeUsername, Secrets.ChallongeApiKey)
     {
         DebugWriteline = output.WriteLine
     };
 }
        internal static async Task <Participant> CreateTestParticipantAsync(ChallongeV1Connection client, Tournament tournament)
        {
            var name = TestHelper.RandomName();

            return(await client.Participant.CreateRequest(tournament.Id.ToString())
                   .SetName(name)
                   .SendAsync());
        }
        internal static async Task <Tournament> addTestParticipantAsync(ChallongeV1Connection client, Tournament tournament)
        {
            var name = "NetCoreTest" + TestHelper.RandomName();

            var request = client.Tournament.CreateRequest()
                          .SetName(name)
                          .SetUrl(name)
                          .SetTournamentType(TournamentType.DoubleElimination)
                          .SetSubdomain(Secrets.ChallongeSubdomain);

            return(await request.SendAsync());
        }
 public ShowRequest(ChallongeV1Connection connection, string Identifier)
 {
     this.Connection           = connection;
     this.TournamentIdentitier = Identifier;
 }
示例#5
0
 public ShowRequest(ChallongeV1Connection connection, string tournamentIdentifier, int matchId)
 {
     this.connection           = connection;
     this.TournamentIdentifier = tournamentIdentifier;
     this.MatchId = matchId;
 }
示例#6
0
 public CreateRequest(ChallongeV1Connection connection)
 {
     this.Connection = connection;
 }
 public BulkAddRequest(ChallongeV1Connection connection, string tournamentIdentifier)
 {
     this.Connection           = connection;
     this.TournamentIdentifier = tournamentIdentifier;
 }
示例#8
0
 public MatchClient(ChallongeV1Connection connection)
 {
     this.connection = connection;
 }
示例#9
0
 public UnmarkUnderwayRequest(ChallongeV1Connection connection, string tournamentIdentifier, int matchId)
 {
     this.Connection           = connection;
     this.TournamentIdentifier = tournamentIdentifier;
     this.MatchId = matchId;
 }
示例#10
0
 public DestroyRequest(ChallongeV1Connection connection, string tournamentIdentifier, string participantIdentifier)
 {
     this.Connection            = connection;
     this.TournamentIdentifier  = tournamentIdentifier;
     this.ParticipantIdentifier = participantIdentifier;
 }
 public UpdateRequest(ChallongeV1Connection connection, string identifier)
 {
     this.Connection = connection;
     this.Identifier = identifier;
 }
 public IndexRequest(ChallongeV1Connection connection)
 {
     this.Connection = connection;
 }
示例#13
0
 public ParticipantClient(ChallongeV1Connection connection)
 {
     this.connection = connection;
 }
示例#14
0
 public TournamentClient(ChallongeV1Connection connection)
 {
     this.connection = connection;
 }