public async Task GetGuildAsync_Gets_Guild() { IGuildApi warcraftClient = ClientFactory.BuildClient(); RequestResult <Guild> result = await warcraftClient.GetGuildAsync("deathwing", "enigma", "profile-us"); Assert.NotNull(result.Value); }
public async Task GetGuildAsync_Gets_Guild() { IGuildApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/guild/deathwing/enigma?namespace=profile-us&locale=en_US", responseContent: Resources.GuildResponse); RequestResult <Guild> result = await warcraftClient.GetGuildAsync("deathwing", "enigma", "profile-us"); Assert.NotNull(result.Value); }