public void DeleteEmergencyContact_Success() { // Act var response = controller.DeleteEmergencyContact(defaultDeleteContactId, DateTime.UtcNow); // Assert Assert.IsTrue(response.RowAffected > 0, "Emergency contact could not be deleted."); }
public void DeleteEmergencyContact_Success() { //Act Mock_EmergencyContact_Success(); var deleteEmergencyContactResult = emergencyContactController.DeleteEmergencyContact(_defaultDeleteContactId, DateTime.UtcNow); var response = deleteEmergencyContactResult as HttpResult <Response <EmergencyContactModel> >; var deleteEmergencyContact = response.Value; //Assert Assert.IsNotNull(deleteEmergencyContact); Assert.IsTrue(deleteEmergencyContact.RowAffected > 0, "Emergency Contact could not be deleted."); }