Example #1
0
        public async Task GetQuestAreaAsync_Gets_QuestArea()
        {
            IQuestApi warcraftClient         = ClientFactory.BuildClient();
            RequestResult <QuestArea> result = await warcraftClient.GetQuestAreaAsync(1, "static-us");

            Assert.NotNull(result.Value);
        }
Example #2
0
    public async Task GetQuestAreaAsync_Gets_QuestArea()
    {
        IQuestApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <QuestArea> result = await warcraftClient.GetQuestAreaAsync(1, "static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/quest/area/1?namespace=static-us&locale=en_US");
    }
Example #3
0
        public async Task GetQuestAreaAsync_Gets_QuestArea()
        {
            IQuestApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/quest/area/1?namespace=static-us&locale=en_US",
                responseContent: Resources.QuestAreaResponse);

            RequestResult <QuestArea> result = await warcraftClient.GetQuestAreaAsync(1, "static-us");

            Assert.NotNull(result.Value);
        }