Exemple #1
0
        public async Task GetItemClassesIndexAsync_Gets_ItemClassesIndex()
        {
            IItemApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <ItemClassesIndex> result = await warcraftClient.GetItemClassesIndexAsync("static-us");

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

        RequestResult <ItemClassesIndex> result = await warcraftClient.GetItemClassesIndexAsync("static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/item-class/index?namespace=static-us&locale=en_US");
    }
Exemple #3
0
    public async Task GetItemClassesIndexAsync_Gets_ItemClassesIndex()
    {
        IItemApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/data/wow/item-class/index?namespace=static-us&locale=en_US",
            responseContent: Resources.ItemClassesIndexResponse);

        RequestResult <ItemClassesIndex> result = await warcraftClient.GetItemClassesIndexAsync("static-us");

        Assert.NotNull(result.Value);
    }