public async Task GetQuestAreasIndexAsync_Gets_QuestAreasIndex() { IQuestApi warcraftClient = ClientFactory.BuildClient(); RequestResult <QuestAreasIndex> result = await warcraftClient.GetQuestAreasIndexAsync("static-us"); Assert.NotNull(result.Value); }
public async Task GetQuestAreasIndexAsync_Gets_QuestAreasIndex() { IQuestApi warcraftClient = ClientFactory.BuildClient(); RequestResult <QuestAreasIndex> result = await warcraftClient.GetQuestAreasIndexAsync("static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/quest/area/index?namespace=static-us&locale=en_US"); }
public async Task GetQuestAreasIndexAsync_Gets_QuestAreasIndex() { IQuestApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/quest/area/index?namespace=static-us&locale=en_US", responseContent: Resources.QuestAreasIndexResponse); RequestResult <QuestAreasIndex> result = await warcraftClient.GetQuestAreasIndexAsync("static-us"); Assert.NotNull(result.Value); }