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