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