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; }
public ShowRequest(ChallongeV1Connection connection, string tournamentIdentifier, int matchId) { this.connection = connection; this.TournamentIdentifier = tournamentIdentifier; this.MatchId = matchId; }
public CreateRequest(ChallongeV1Connection connection) { this.Connection = connection; }
public BulkAddRequest(ChallongeV1Connection connection, string tournamentIdentifier) { this.Connection = connection; this.TournamentIdentifier = tournamentIdentifier; }
public MatchClient(ChallongeV1Connection connection) { this.connection = connection; }
public UnmarkUnderwayRequest(ChallongeV1Connection connection, string tournamentIdentifier, int matchId) { this.Connection = connection; this.TournamentIdentifier = tournamentIdentifier; this.MatchId = matchId; }
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; }
public ParticipantClient(ChallongeV1Connection connection) { this.connection = connection; }
public TournamentClient(ChallongeV1Connection connection) { this.connection = connection; }