public async Task GetJournalInstancesIndexAsync_Gets_JournalInstances()
        {
            IJournalApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <JournalInstancesIndex> result = await warcraftClient.GetJournalInstancesIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }
Beispiel #2
0
    public async Task GetJournalInstancesIndexAsync_Gets_JournalInstances()
    {
        IJournalApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <JournalInstancesIndex> result = await warcraftClient.GetJournalInstancesIndexAsync("static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/journal-instance/index?namespace=static-us&locale=en_US");
    }
Beispiel #3
0
    public async Task GetJournalInstancesIndexAsync_Gets_JournalInstances()
    {
        IJournalApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/data/wow/journal-instance/index?namespace=static-us&locale=en_US",
            responseContent: Resources.JournalInstancesIndexResponse);

        RequestResult <JournalInstancesIndex> result = await warcraftClient.GetJournalInstancesIndexAsync("static-us");

        Assert.NotNull(result.Value);
    }