public async Task GetPvpLeaderboardAsync_Gets_PvpLeaderboard() { IPvpSeasonApi warcraftClient = ClientFactory.BuildClient(); RequestResult <PvpLeaderboard> result = await warcraftClient.GetPvpLeaderboardAsync(27, "3v3", "dynamic-us"); Assert.NotNull(result.Value); }
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); }
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"); }