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 GetMythicKeystoneAffixMediaAsync_Gets_MythicKeystoneAffixMedia() { IMythicKeystoneAffixApi warcraftClient = ClientFactory.BuildClient(); RequestResult <MythicKeystoneAffixMedia> result = await warcraftClient.GetMythicKeystoneAffixMediaAsync(1, "static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/media/keystone-affix/1?namespace=static-us&locale=en_US"); }
public async void 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); }