示例#1
0
        public async Task GetJournalInstanceAsync_Gets_Instance()
        {
            IJournalApi warcraftClient      = ClientFactory.BuildClient();
            RequestResult <Instance> result = await warcraftClient.GetJournalInstanceAsync(63, "static-us");

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

        RequestResult <Instance> result = await warcraftClient.GetJournalInstanceAsync(63, "static-us");

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

        RequestResult <Instance> result = await warcraftClient.GetJournalInstanceAsync(63, "static-us");

        Assert.NotNull(result.Value);
    }