Skip to content

Commit

Permalink
Re-enable a test for an API that has been fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Elanis committed Aug 27, 2023
1 parent 72d43b7 commit 2c4dedb
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions Dysnomia.Common.BlizzardWebAPI.Test/Starcraft2CommunityTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,82 +6,82 @@
using Xunit;

namespace Dysnomia.Common.BlizzardWebAPI.Test {
public class Starcraft2CommunityTest : BaseTestClass {
protected readonly IStarcraft2Community starcraftCommunity;
public class Starcraft2CommunityTest : BaseTestClass {
protected readonly IStarcraft2Community starcraftCommunity;

public Starcraft2CommunityTest(IHttpClientFactory httpClientFactory, IStarcraft2Community starcraftCommunity) : base(httpClientFactory) {
this.starcraftCommunity = starcraftCommunity;
}
public Starcraft2CommunityTest(IHttpClientFactory httpClientFactory, IStarcraft2Community starcraftCommunity) : base(httpClientFactory) {
this.starcraftCommunity = starcraftCommunity;
}

[Fact]
public async Task GetStaticProfile_OK() {
var token = (await this.clientCredentialFlowToken).access_token;
[Fact]
public async Task GetStaticProfile_OK() {
var token = (await this.clientCredentialFlowToken).access_token;

var res = await starcraftCommunity.GetStaticProfile(token, RegionEnum.EU, StarCraft2RegionEnum.Europe);
Assert.True(res != null);
}
var res = await starcraftCommunity.GetStaticProfile(token, RegionEnum.EU, StarCraft2RegionEnum.Europe);
Assert.True(res != null);
}

[Fact]
public async Task GetMetadataProfile_OK() {
var token = (await this.clientCredentialFlowToken).access_token;
[Fact]
public async Task GetMetadataProfile_OK() {
var token = (await this.clientCredentialFlowToken).access_token;

var res = await starcraftCommunity.GetMetadataProfile(token, RegionEnum.EU, StarCraft2RegionEnum.Europe, StarCraft2RealmEnum.Europe, BattleNetProfileId);
var res = await starcraftCommunity.GetMetadataProfile(token, RegionEnum.EU, StarCraft2RegionEnum.Europe, StarCraft2RealmEnum.Europe, BattleNetProfileId);

Assert.True(res != null);
}
Assert.True(res != null);
}

[Fact]
public async Task GetProfile_OK() {
var token = (await this.clientCredentialFlowToken).access_token;
[Fact]
public async Task GetProfile_OK() {
var token = (await this.clientCredentialFlowToken).access_token;

var res = await starcraftCommunity.GetProfile(token, RegionEnum.EU, StarCraft2RegionEnum.Europe, StarCraft2RealmEnum.Europe, BattleNetProfileId);
var res = await starcraftCommunity.GetProfile(token, RegionEnum.EU, StarCraft2RegionEnum.Europe, StarCraft2RealmEnum.Europe, BattleNetProfileId);

Assert.True(res != null);
}
Assert.True(res != null);
}

[Fact]
public async Task GetLadderSummary_OK() {
var token = (await this.clientCredentialFlowToken).access_token;
[Fact]
public async Task GetLadderSummary_OK() {
var token = (await this.clientCredentialFlowToken).access_token;

var res = await starcraftCommunity.GetProfileLadderSummary(token, RegionEnum.EU, StarCraft2RegionEnum.Europe, StarCraft2RealmEnum.Europe, BattleNetProfileId);
var res = await starcraftCommunity.GetProfileLadderSummary(token, RegionEnum.EU, StarCraft2RegionEnum.Europe, StarCraft2RealmEnum.Europe, BattleNetProfileId);

Assert.True(res != null);
}
Assert.True(res != null);
}

[Fact]
public async Task GetProfileLadder_OK() {
var token = (await this.clientCredentialFlowToken).access_token;
[Fact]
public async Task GetProfileLadder_OK() {
var token = (await this.clientCredentialFlowToken).access_token;

var res = await starcraftCommunity.GetProfileLadder(token, RegionEnum.EU, StarCraft2RegionEnum.Europe, StarCraft2RealmEnum.Europe, BattleNetProfileId, 0);
var res = await starcraftCommunity.GetProfileLadder(token, RegionEnum.EU, StarCraft2RegionEnum.Europe, StarCraft2RealmEnum.Europe, BattleNetProfileId, 0);

Assert.True(res != null);
}
Assert.True(res != null);
}

[Fact(Skip = "Server issue")]
public async Task GetGrandmasterLeaderboard_OK() {
var token = (await this.clientCredentialFlowToken).access_token;
[Fact]
public async Task GetGrandmasterLeaderboard_OK() {
var token = (await this.clientCredentialFlowToken).access_token;

var res = await starcraftCommunity.GetGrandmasterLeaderboard(token, RegionEnum.EU, StarCraft2RegionEnum.Europe);
var res = await starcraftCommunity.GetGrandmasterLeaderboard(token, RegionEnum.EU, StarCraft2RegionEnum.Europe);

Assert.True(res != null);
}
Assert.True(res != null);
}

[Fact]
public async Task GetLadderSeason_OK() {
var token = (await this.clientCredentialFlowToken).access_token;
[Fact]
public async Task GetLadderSeason_OK() {
var token = (await this.clientCredentialFlowToken).access_token;

var res = await starcraftCommunity.GetLadderSeason(token, RegionEnum.EU, StarCraft2RegionEnum.Europe);
var res = await starcraftCommunity.GetLadderSeason(token, RegionEnum.EU, StarCraft2RegionEnum.Europe);

Assert.True(res != null);
}
Assert.True(res != null);
}

[Fact]
public async Task GetPlayerAccount_OK() {
var token = (await this.clientCredentialFlowToken).access_token;
[Fact]
public async Task GetPlayerAccount_OK() {
var token = (await this.clientCredentialFlowToken).access_token;

var res = await starcraftCommunity.GetPlayerAccount(token, RegionEnum.EU, BattleNetAccountId);
var res = await starcraftCommunity.GetPlayerAccount(token, RegionEnum.EU, BattleNetAccountId);

Assert.True(res != null);
}
}
Assert.True(res != null);
}
}
}

0 comments on commit 2c4dedb

Please sign in to comment.