public async Task GetJournalEncountersIndexAsync_Gets_JournalEncounters() { IJournalApi warcraftClient = ClientFactory.BuildClient(); RequestResult <JournalEncountersIndex> result = await warcraftClient.GetJournalEncountersIndexAsync("static-us"); Assert.NotNull(result.Value); }
public async Task GetJournalEncountersIndexAsync_Gets_JournalEncounters() { IJournalApi warcraftClient = ClientFactory.BuildClient(); RequestResult <JournalEncountersIndex> result = await warcraftClient.GetJournalEncountersIndexAsync("static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/journal-encounter/index?namespace=static-us&locale=en_US"); }
public async Task GetJournalEncountersIndexAsync_Gets_JournalEncounters() { IJournalApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/journal-encounter/index?namespace=static-us&locale=en_US", responseContent: Resources.JournalEncountersIndexResponse); RequestResult <JournalEncountersIndex> result = await warcraftClient.GetJournalEncountersIndexAsync("static-us"); Assert.NotNull(result.Value); }