예제 #1
0
        public async Task GetPvpLeaderboardsIndexAsync_Gets_PvpLeaderboardsIndex()
        {
            IPvpSeasonApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <PvpLeaderboardsIndex> result = await warcraftClient.GetPvpLeaderboardsIndexAsync(27, "dynamic-us");

            Assert.NotNull(result.Value);
        }
예제 #2
0
        public async void GetPvpLeaderboardsIndexAsync_Gets_PvpLeaderboardsIndex()
        {
            IPvpSeasonApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/pvp-season/27/pvp-leaderboard/index?namespace=dynamic-us&locale=en_US",
                responseContent: Resources.PvpLeaderboardsIndexResponse);

            RequestResult<PvpLeaderboardsIndex> result = await warcraftClient.GetPvpLeaderboardsIndexAsync(27, "dynamic-us");
            Assert.NotNull(result.Value);
        }
예제 #3
0
    public async Task GetPvpLeaderboardsIndexAsync_Gets_PvpLeaderboardsIndex()
    {
        IPvpSeasonApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <PvpLeaderboardsIndex> result = await warcraftClient.GetPvpLeaderboardsIndexAsync(27, "dynamic-us");

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