Пример #1
0
        public async Task GetJournalExpansionAsync_Gets_JournalExpansion()
        {
            IJournalApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <JournalExpansion> result = await warcraftClient.GetJournalExpansionAsync(68, "static-us");

            Assert.NotNull(result.Value);
        }
Пример #2
0
    public async Task GetJournalExpansionAsync_Gets_JournalExpansion()
    {
        IJournalApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <JournalExpansion> result = await warcraftClient.GetJournalExpansionAsync(68, "static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/journal-expansion/68?namespace=static-us&locale=en_US");
    }
Пример #3
0
    public async Task GetJournalExpansionAsync_Gets_JournalExpansion()
    {
        IJournalApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/data/wow/journal-expansion/68?namespace=static-us&locale=en_US",
            responseContent: Resources.JournalExpansionResponse);

        RequestResult <JournalExpansion> result = await warcraftClient.GetJournalExpansionAsync(68, "static-us");

        Assert.NotNull(result.Value);
    }