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