Exemplo n.º 1
0
        public async Task GetGuildCrestBorderMediaAsync_Gets_GuildCrestBorderMedia()
        {
            IGuildCrestApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <GuildCrestBorderMedia> result = await warcraftClient.GetGuildCrestBorderMediaAsync(0, "static-us");

            Assert.NotNull(result.Value);
        }
Exemplo n.º 2
0
    public async Task GetGuildCrestBorderMediaAsync_Gets_GuildCrestBorderMedia()
    {
        IGuildCrestApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <GuildCrestBorderMedia> result = await warcraftClient.GetGuildCrestBorderMediaAsync(0, "static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/media/guild-crest/border/0?namespace=static-us&locale=en_US");
    }
Exemplo n.º 3
0
        public async void GetGuildCrestBorderMediaAsync_Gets_GuildCrestBorderMedia()
        {
            IGuildCrestApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/media/guild-crest/border/0?namespace=static-us&locale=en_US",
                responseContent: Resources.GuildCrestBorderMediaResponse);

            RequestResult <GuildCrestBorderMedia> result = await warcraftClient.GetGuildCrestBorderMediaAsync(0, "static-us");

            Assert.NotNull(result.Value);
        }