public async Task GetPvpTierAsync_Gets_PvpTier() { IPvpTierApi warcraftClient = ClientFactory.BuildClient(); RequestResult <PvpTier> result = await warcraftClient.GetPvpTierAsync(1, "static-us"); Assert.NotNull(result.Value); }
public async Task GetPvpTierAsync_Gets_PvpTier() { IPvpTierApi warcraftClient = ClientFactory.BuildClient(); RequestResult <PvpTier> result = await warcraftClient.GetPvpTierAsync(1, "static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/pvp-tier/1?namespace=static-us&locale=en_US"); }
public async Task GetPvpTierAsync_Gets_PvpTier() { IPvpTierApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/pvp-tier/1?namespace=static-us&locale=en_US", responseContent: Resources.PvpTierResponse); RequestResult <PvpTier> result = await warcraftClient.GetPvpTierAsync(1, "static-us"); Assert.NotNull(result.Value); }