public async Task GetMythicKeystoneAffixAsync_Gets_MythicKeystoneAffix() { IMythicKeystoneAffixApi warcraftClient = ClientFactory.BuildClient(); RequestResult <MythicKeystoneAffix> result = await warcraftClient.GetMythicKeystoneAffixAsync(1, "static-us"); Assert.NotNull(result.Value); }
public async Task GetMythicKeystoneAffixAsync_Gets_MythicKeystoneAffix() { IMythicKeystoneAffixApi warcraftClient = ClientFactory.BuildClient(); RequestResult <MythicKeystoneAffix> result = await warcraftClient.GetMythicKeystoneAffixAsync(1, "static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/keystone-affix/1?namespace=static-us&locale=en_US"); }
public async void GetMythicKeystoneAffixAsync_Gets_MythicKeystoneAffix() { IMythicKeystoneAffixApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/keystone-affix/1?namespace=static-us&locale=en_US", responseContent: Resources.MythicKeystoneAffixResponse); RequestResult <MythicKeystoneAffix> result = await warcraftClient.GetMythicKeystoneAffixAsync(1, "static-us"); Assert.NotNull(result.Value); }