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 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 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); }