Ejemplo n.º 1
0
        public async Task GetPvpLeaderboardAsync_Gets_PvpLeaderboard()
        {
            IPvpSeasonApi warcraftClient          = ClientFactory.BuildClient();
            RequestResult <PvpLeaderboard> result = await warcraftClient.GetPvpLeaderboardAsync(27, "3v3", "dynamic-us");

            Assert.NotNull(result.Value);
        }
Ejemplo n.º 2
0
        public async void GetPvpLeaderboardAsync_Gets_PvpLeaderboard()
        {
            IPvpSeasonApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/pvp-season/27/pvp-leaderboard/3v3?namespace=dynamic-us&locale=en_US",
                responseContent: Resources.PvpLeaderboardResponse);

            RequestResult<PvpLeaderboard> result = await warcraftClient.GetPvpLeaderboardAsync(27, "3v3", "dynamic-us");
            Assert.NotNull(result.Value);
        }
Ejemplo n.º 3
0
    public async Task GetPvpLeaderboardAsync_Gets_PvpLeaderboard()
    {
        IPvpSeasonApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <PvpLeaderboard> result = await warcraftClient.GetPvpLeaderboardAsync(27, "3v3", "dynamic-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/pvp-season/27/pvp-leaderboard/3v3?namespace=dynamic-us&locale=en_US");
    }