public async Task GetJournalExpansionsIndexAsync_Gets_JournalExpansions() { IJournalApi warcraftClient = ClientFactory.BuildClient(); RequestResult <JournalExpansionsIndex> result = await warcraftClient.GetJournalExpansionsIndexAsync("static-us"); Assert.NotNull(result.Value); }
public async Task GetJournalInstanceMediaAsync_Gets_InstanceMedia() { IJournalApi warcraftClient = ClientFactory.BuildClient(); RequestResult <JournalInstanceMedia> result = await warcraftClient.GetJournalInstanceMediaAsync(63, "static-us"); Assert.NotNull(result.Value); }
public async Task GetJournalEncounterAsync_Gets_Encounter() { IJournalApi warcraftClient = ClientFactory.BuildClient(); RequestResult <Encounter> result = await warcraftClient.GetJournalEncounterAsync(89, "static-us"); Assert.NotNull(result.Value); }
public async Task GetJournalInstanceMediaAsync_Gets_InstanceMedia() { IJournalApi warcraftClient = ClientFactory.BuildClient(); RequestResult <JournalInstanceMedia> result = await warcraftClient.GetJournalInstanceMediaAsync(63, "static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/media/journal-instance/63?namespace=static-us&locale=en_US"); }
public async Task GetJournalExpansionsIndexAsync_Gets_JournalExpansions() { IJournalApi warcraftClient = ClientFactory.BuildClient(); RequestResult <JournalExpansionsIndex> result = await warcraftClient.GetJournalExpansionsIndexAsync("static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/journal-expansion/index?namespace=static-us&locale=en_US"); }
public async Task GetJournalEncounterAsync_Gets_Encounter() { IJournalApi warcraftClient = ClientFactory.BuildClient(); RequestResult <Encounter> result = await warcraftClient.GetJournalEncounterAsync(89, "static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/journal-encounter/89?namespace=static-us&locale=en_US"); }
public async Task GetJournalInstanceMediaAsync_Gets_InstanceMedia() { IJournalApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/media/journal-instance/63?namespace=static-us&locale=en_US", responseContent: Resources.JournalInstanceMediaResponse); RequestResult <JournalInstanceMedia> result = await warcraftClient.GetJournalInstanceMediaAsync(63, "static-us"); Assert.NotNull(result.Value); }
public async Task GetJournalExpansionsIndexAsync_Gets_JournalExpansions() { IJournalApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/journal-expansion/index?namespace=static-us&locale=en_US", responseContent: Resources.JournalExpansionsIndexResponse); RequestResult <JournalExpansionsIndex> result = await warcraftClient.GetJournalExpansionsIndexAsync("static-us"); Assert.NotNull(result.Value); }
public async Task GetJournalEncounterAsync_Gets_Encounter() { IJournalApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/journal-encounter/89?namespace=static-us&locale=en_US", responseContent: Resources.JournalEncounterResponse); RequestResult <Encounter> result = await warcraftClient.GetJournalEncounterAsync(89, "static-us"); Assert.NotNull(result.Value); }