Esempio n. 1
0
        public async Task GetJournalInstanceMediaAsync_Gets_InstanceMedia()
        {
            IJournalApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <JournalInstanceMedia> result = await warcraftClient.GetJournalInstanceMediaAsync(63, "static-us");

            Assert.NotNull(result.Value);
        }
Esempio n. 2
0
    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");
    }
Esempio n. 3
0
    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);
    }