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