Esempio n. 1
0
        public async Task GetModifiedCraftingIndexAsync_Gets_ModifiedCraftingIndex()
        {
            IModifiedCraftingApi warcraftClient          = ClientFactory.BuildClient();
            RequestResult <ModifiedCraftingIndex> result = await warcraftClient.GetModifiedCraftingIndexAsync("static-us");

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

        RequestResult <ModifiedCraftingIndex> result = await warcraftClient.GetModifiedCraftingIndexAsync("static-us");

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

            RequestResult <ModifiedCraftingIndex> result = await warcraftClient.GetModifiedCraftingIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }