예제 #1
0
        public async Task GetItemMediaAsync_Gets_Item()
        {
            IItemApi warcraftClient          = ClientFactory.BuildClient();
            RequestResult <ItemMedia> result = await warcraftClient.GetItemMediaAsync(19019, "static-us");

            Assert.NotNull(result.Value);
        }
예제 #2
0
    public async Task GetItemMediaAsync_Gets_Item()
    {
        IItemApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <ItemMedia> result = await warcraftClient.GetItemMediaAsync(19019, "static-us");

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

        RequestResult <ItemMedia> result = await warcraftClient.GetItemMediaAsync(19019, "static-us");

        Assert.NotNull(result.Value);
    }