Пример #1
0
        public async Task GetGuildAsync_Gets_Guild()
        {
            IGuildApi             warcraftClient = ClientFactory.BuildClient();
            RequestResult <Guild> result         = await warcraftClient.GetGuildAsync("deathwing", "enigma", "profile-us");

            Assert.NotNull(result.Value);
        }
Пример #2
0
    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);
    }