예제 #1
0
        public async Task GetGuildAchievementsAsync_Gets_GuildAchievements()
        {
            IGuildApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <GuildAchievements> result = await warcraftClient.GetGuildAchievementsAsync("arygos", "enigma", "profile-us");

            Assert.NotNull(result.Value);
        }
예제 #2
0
    public async Task GetGuildAchievementsAsync_Gets_GuildAchievements()
    {
        IGuildApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/data/wow/guild/deathwing/enigma/achievements?namespace=profile-us&locale=en_US",
            responseContent: Resources.GuildAchievementsResponse);

        RequestResult <GuildAchievements> result = await warcraftClient.GetGuildAchievementsAsync("deathwing", "enigma", "profile-us");

        Assert.NotNull(result.Value);
    }