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

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

        RequestResult <JournalEncountersIndex> result = await warcraftClient.GetJournalEncountersIndexAsync("static-us");

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

        RequestResult <JournalEncountersIndex> result = await warcraftClient.GetJournalEncountersIndexAsync("static-us");

        Assert.NotNull(result.Value);
    }