public void Initialize() { var username = Properties.Settings.Default.username; var apiKey = Properties.Settings.Default.apiKey; this.target = new ChallongeV1(username, apiKey); }
public void Initialize() { this.username = Properties.Settings.Default.username; this.apikey = Properties.Settings.Default.apiKey; this.subdomain = Properties.Settings.Default.organization; this.target = new ChallongeV1(this.username, this.apikey); }
public void GetCredentials_Test() { const string Username = "******"; const string ApiKey = "ApiKey"; var challonge = new ChallongeV1(Username, ApiKey); Assert.AreEqual(Username, challonge.Username); Assert.AreEqual(ApiKey, challonge.Apikey); }
public void Initialize() { var username = Properties.Settings.Default.username; var apiKey = Properties.Settings.Default.apiKey; this.randomName = "TommeAPITest" + Utilities.RandomName(); Debug.WriteLine(string.Format("Initializing with name {0}", this.randomName)); this.target = new ChallongeV1(username, apiKey); this.tournamentUnderTest = this.target.TournamentCreate(this.randomName, TournamentType.SingleElimination, this.randomName); }