Пример #1
0
        public async Task GetItemSetsIndexAsync_Gets_ItemSetsIndex()
        {
            IItemApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <ItemSetsIndex> result = await warcraftClient.GetItemSetsIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }
Пример #2
0
    public async Task GetItemSetsIndexAsync_Gets_ItemSetsIndex()
    {
        IItemApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <ItemSetsIndex> result = await warcraftClient.GetItemSetsIndexAsync("static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/item-set/index?namespace=static-us&locale=en_US");
    }
Пример #3
0
    public async Task GetItemSetsIndexAsync_Gets_ItemSetsIndex()
    {
        IItemApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/data/wow/item-set/index?namespace=static-us&locale=en_US",
            responseContent: Resources.ItemSetsIndexResponse);

        RequestResult <ItemSetsIndex> result = await warcraftClient.GetItemSetsIndexAsync("static-us");

        Assert.NotNull(result.Value);
    }