public async Task GetMythicKeystoneAffixMediaAsync_Gets_MythicKeystoneAffixMedia() { IMythicKeystoneAffixApi warcraftClient = ClientFactory.BuildClient(); RequestResult <MythicKeystoneAffixMedia> result = await warcraftClient.GetMythicKeystoneAffixMediaAsync(1, "static-us"); Assert.NotNull(result.Value); }
public async Task GetMythicKeystoneLeaderboardsIndexAsync_Gets_MythicKeystoneLeaderboardsIndex() { IMythicKeystoneAffixApi warcraftClient = ClientFactory.BuildClient(); RequestResult <MythicKeystoneAffixesIndex> result = await warcraftClient.GetMythicKeystoneAffixesIndexAsync("static-us"); Assert.NotNull(result.Value); }
public async Task GetMythicKeystoneLeaderboardsIndexAsync_Gets_MythicKeystoneLeaderboardsIndex() { IMythicKeystoneAffixApi warcraftClient = ClientFactory.BuildClient(); RequestResult <MythicKeystoneAffixesIndex> result = await warcraftClient.GetMythicKeystoneAffixesIndexAsync("static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/keystone-affix/index?namespace=static-us&locale=en_US"); }
public async void GetMythicKeystoneLeaderboardsIndexAsync_Gets_MythicKeystoneLeaderboardsIndex() { IMythicKeystoneAffixApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/keystone-affix/index?namespace=static-us&locale=en_US", responseContent: Resources.MythicKeystoneAffixesIndexResponse); RequestResult <MythicKeystoneAffixesIndex> result = await warcraftClient.GetMythicKeystoneAffixesIndexAsync("static-us"); Assert.NotNull(result.Value); }
public async Task GetMythicKeystoneAffixMediaAsync_Gets_MythicKeystoneAffixMedia() { IMythicKeystoneAffixApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/media/keystone-affix/1?namespace=static-us&locale=en_US", responseContent: Resources.MythicKeystoneAffixMediaResponse); RequestResult <MythicKeystoneAffixMedia> result = await warcraftClient.GetMythicKeystoneAffixMediaAsync(1, "static-us"); Assert.NotNull(result.Value); }