Ejemplo n.º 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);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
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);
    }