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