Пример #1
0
        public async Task GetJournalExpansionsIndexAsync_Gets_JournalExpansions()
        {
            IJournalApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <JournalExpansionsIndex> result = await warcraftClient.GetJournalExpansionsIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }
Пример #2
0
        public async Task GetJournalInstanceMediaAsync_Gets_InstanceMedia()
        {
            IJournalApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <JournalInstanceMedia> result = await warcraftClient.GetJournalInstanceMediaAsync(63, "static-us");

            Assert.NotNull(result.Value);
        }
Пример #3
0
        public async Task GetJournalEncounterAsync_Gets_Encounter()
        {
            IJournalApi warcraftClient       = ClientFactory.BuildClient();
            RequestResult <Encounter> result = await warcraftClient.GetJournalEncounterAsync(89, "static-us");

            Assert.NotNull(result.Value);
        }
Пример #4
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");
    }
Пример #5
0
    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");
    }
Пример #6
0
    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");
    }
Пример #7
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);
    }
Пример #8
0
    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);
    }
Пример #9
0
    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);
    }