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