public void RealShowExtendedSeasons_ValidId_ReturnSeasons() { //Arrange //Act var result = _apiClientTrue.GetSeasons(1); result.Wait(); //Assert Assert.AreNotEqual(null, result.Result); }
public void ShowExtendedSeasons_ValidId_ReturnSeasons() { //Arrange _showExtendedService.GetSeasons(Arg.Any <int>()) .Returns(_jsonSerializeService.SerializeObject(_mockSeasonDtos)); //Act var seasons = _apiClientMock.GetSeasons(1); //Assert Assert.AreEqual(_jsonSerializeService.SerializeObject(_mockSeasonDtos), _jsonSerializeService.SerializeObject(seasons.Result)); }