public void DeleteHPI_Success() { // Act var response = controller.DeleteHPI(defaultDeleteID, DateTime.UtcNow); // Assert Assert.IsNotNull(response, "Response can not be null"); Assert.IsTrue(response.RowAffected > 2, "Present Illness could not be deleted."); }
public void DeleteHPI_Success() { //Act Mock_PresentIllness(); var deleteHPIResult = PresentIllnessController.DeleteHPI(_defaultDeleteId, DateTime.UtcNow); var response = deleteHPIResult as HttpResult <Response <PresentIllnessModel> >; //Assert Assert.IsNotNull(response, "Response can't be null"); Assert.IsTrue(HPIs.Count() == 0, "HPI could not be deleted."); }