public void DeleteHPIDetail_Success()
        {
            // Act
            var response = controller.DeleteHPIDetail(defaultDeleteID, DateTime.UtcNow);

            // Assert
            Assert.IsNotNull(response, "Response can not be null");
            Assert.IsTrue(response.RowAffected > 2, "hpi detail could not be deleted.");
        }
Пример #2
0
        public void DeleteHPIDetail_Success()
        {
            //Arrange
            Mock_PresentIllness();
            //Act
            var deleteHPIResult = PresentIllnessController.DeleteHPIDetail(_defaultDeleteId, DateTime.UtcNow);
            var response        = deleteHPIResult as HttpResult <Response <PresentIllnessDetailModel> >;

            //Assert
            Assert.IsNotNull(response, "Response can't be null");
            Assert.IsTrue(HPIs.Count() == 0, "HPI details could not be deleted.");
        }