Ejemplo n.º 1
0
        public async Task GetModifiedCraftingCategoryAsync_Gets_ModifiedCraftingCategory()
        {
            IModifiedCraftingApi warcraftClient             = ClientFactory.BuildClient();
            RequestResult <ModifiedCraftingCategory> result = await warcraftClient.GetModifiedCraftingCategoryAsync(1, "static-us");

            Assert.NotNull(result.Value);
        }
    public async Task GetModifiedCraftingCategoryAsync_Gets_ModifiedCraftingCategory()
    {
        IModifiedCraftingApi warcraftClient = ClientFactory.BuildClient();

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

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/modified-crafting/category/1?namespace=static-us&locale=en_US");
    }
        public async Task GetModifiedCraftingCategoryAsync_Gets_ModifiedCraftingCategory()
        {
            IModifiedCraftingApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/modified-crafting/category/1?namespace=static-us&locale=en_US",
                responseContent: Resources.ModifiedCraftingCategoryResponse);

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

            Assert.NotNull(result.Value);
        }