Exemplo n.º 1
0
        public async Task GetQuestCategoryAsync_Gets_QuestCategory()
        {
            IQuestApi warcraftClient             = ClientFactory.BuildClient();
            RequestResult <QuestCategory> result = await warcraftClient.GetQuestCategoryAsync(1, "static-us");

            Assert.NotNull(result.Value);
        }
Exemplo n.º 2
0
    public async Task GetQuestCategoryAsync_Gets_QuestCategory()
    {
        IQuestApi warcraftClient = ClientFactory.BuildClient();

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

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

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

            Assert.NotNull(result.Value);
        }