public void RealShowExtendedCast_ValidId_ReturnCast() { //Arrange //Act var result = _apiClientTrue.GetCast(1); result.Wait(); //Assert Assert.AreNotEqual(null, result.Result); }
public void ShowExtendedCast_ValidId_ReturnCast() { //Arrange _showExtendedService.GetCast(Arg.Any <int>()) .Returns(_jsonSerializeService.SerializeObject(_mockCastDtos)); //Act var cast = _apiClientMock.GetCast(1); //Assert Assert.AreEqual(_jsonSerializeService.SerializeObject(_mockCastDtos), _jsonSerializeService.SerializeObject(cast.Result)); }