public void UpdateAdditionalDemographic_Success() { // Act var additionalDemographicsViewModel = new AdditionalDemographicsViewModel { ContactID = 1, Name = "Test1", MRN = 124586, EthnicityID = 1, ForceRollback = true }; var response = controller.UpdateAdditionalDemographic(additionalDemographicsViewModel); // Assert Assert.IsTrue(response.RowAffected > 0, "Additional Demography could not be updated."); }
public void UpdateAdditionalDemographic_Success() { //Act var updateAdditionalDemographic = new AdditionalDemographicsModel { ContactID = 4, Name = "Test4Update", MRN = 123456 }; var updateAdditionalDemographicResult = additionalDemographicController.UpdateAdditionalDemographic(updateAdditionalDemographic); var response = updateAdditionalDemographicResult as HttpResult <Response <AdditionalDemographicsModel> >; var additionalDemography = response.Value.DataItems; var count = additionalDemography.Count(); //Assert Assert.IsNotNull(additionalDemography); Assert.IsTrue(count > 0, "Additional Demography could not be updated."); }