Ejemplo n.º 1
0
        public async Task GetItemSetAsync_Gets_ItemSet()
        {
            IItemApi warcraftClient        = ClientFactory.BuildClient();
            RequestResult <ItemSet> result = await warcraftClient.GetItemSetAsync(1, "static-us");

            Assert.NotNull(result.Value);
        }
Ejemplo n.º 2
0
    public async Task GetItemSetAsync_Gets_ItemSet()
    {
        IItemApi warcraftClient = ClientFactory.BuildClient();

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

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/item-set/1?namespace=static-us&locale=en_US");
    }
Ejemplo n.º 3
0
    public async Task GetItemSetAsync_Gets_ItemSet()
    {
        IItemApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/data/wow/item-set/1?namespace=static-us&locale=en_US",
            responseContent: Resources.ItemSetResponse);

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

        Assert.NotNull(result.Value);
    }