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