Exemplo n.º 1
0
        public async Task GetJournalExpansionsIndexAsync_Gets_JournalExpansions()
        {
            IJournalApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <JournalExpansionsIndex> result = await warcraftClient.GetJournalExpansionsIndexAsync("static-us");

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