public async Task GetPvpSeasonAsync_Gets_PvpSeason() { IPvpSeasonApi warcraftClient = ClientFactory.BuildClient(); RequestResult <PvpSeason> result = await warcraftClient.GetPvpSeasonAsync(27, "dynamic-us"); Assert.NotNull(result.Value); }
public async void GetPvpSeasonAsync_Gets_PvpSeason() { IPvpSeasonApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/pvp-season/27?namespace=dynamic-us&locale=en_US", responseContent: Resources.PvpSeasonResponse); RequestResult<PvpSeason> result = await warcraftClient.GetPvpSeasonAsync(27, "dynamic-us"); Assert.NotNull(result.Value); }
public async Task GetPvpSeasonAsync_Gets_PvpSeason() { IPvpSeasonApi warcraftClient = ClientFactory.BuildClient(); RequestResult <PvpSeason> result = await warcraftClient.GetPvpSeasonAsync(27, "dynamic-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/pvp-season/27?namespace=dynamic-us&locale=en_US"); }