Ejemplo 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);
        }
Ejemplo n.º 2
0
        public async Task GetModifiedCraftingReagentSlotTypeAsync_Gets_ModifiedCraftingReagentSlotType()
        {
            IModifiedCraftingApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <ModifiedCraftingReagentSlotType> result = await warcraftClient.GetModifiedCraftingReagentSlotTypeAsync(16, "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);
        }
        public async Task GetModifiedCraftingReagentSlotTypeAsync_Gets_ModifiedCraftingReagentSlotType()
        {
            IModifiedCraftingApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/modified-crafting/reagent-slot-type/16?namespace=static-us&locale=en_US",
                responseContent: Resources.ModifiedCraftingReagentSlotTypeResponse);

            RequestResult <ModifiedCraftingReagentSlotType> result = await warcraftClient.GetModifiedCraftingReagentSlotTypeAsync(16, "static-us");

            Assert.NotNull(result.Value);
        }