public async Task GetAzeriteEssenceMediaAsync_Gets_AzeriteEssenceMedia() { IAzeriteEssenceApi warcraftClient = ClientFactory.BuildClient(); RequestResult <AzeriteEssenceMedia> result = await warcraftClient.GetAzeriteEssenceMediaAsync(2, "static-us"); Assert.NotNull(result.Value); }
public async Task GetAzeriteEssenceMediaAsync_Gets_AzeriteEssenceMedia() { IAzeriteEssenceApi warcraftClient = ClientFactory.BuildClient(); RequestResult <AzeriteEssenceMedia> result = await warcraftClient.GetAzeriteEssenceMediaAsync(2, "static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/media/azerite-essence/2?namespace=static-us&locale=en_US"); }
public async Task GetAzeriteEssenceMediaAsync_Gets_AzeriteEssenceMedia() { IAzeriteEssenceApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/media/azerite-essence/2?namespace=static-us&locale=en_US", responseContent: Resources.AzeriteEssenceMediaResponse); RequestResult <AzeriteEssenceMedia> result = await warcraftClient.GetAzeriteEssenceMediaAsync(2, "static-us"); Assert.NotNull(result.Value); }