public async Task GetGuildCrestEmblemMediaAsync_Gets_GuildCrestEmblemMedia() { IGuildCrestApi warcraftClient = ClientFactory.BuildClient(); RequestResult <GuildCrestEmblemMedia> result = await warcraftClient.GetGuildCrestEmblemMediaAsync(0, "static-us"); Assert.NotNull(result.Value); }
public async Task GetGuildCrestEmblemMediaAsync_Gets_GuildCrestEmblemMedia() { IGuildCrestApi warcraftClient = ClientFactory.BuildClient(); RequestResult <GuildCrestEmblemMedia> result = await warcraftClient.GetGuildCrestEmblemMediaAsync(0, "static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/media/guild-crest/emblem/0?namespace=static-us&locale=en_US"); }
public async void GetGuildCrestEmblemMediaAsync_Gets_GuildCrestEmblemMedia() { IGuildCrestApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/media/guild-crest/emblem/0?namespace=static-us&locale=en_US", responseContent: Resources.GuildCrestEmblemMediaResponse); RequestResult <GuildCrestEmblemMedia> result = await warcraftClient.GetGuildCrestEmblemMediaAsync(0, "static-us"); Assert.NotNull(result.Value); }