Пример #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);
        }
Пример #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");
    }
Пример #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);
    }