Beispiel #1
0
        public void DeleteCollateral_Success()
        {
            //Act
            Mock_Collateral_Success();
            var deleteCollateralResult = collateralController.Deletecollateral(_defaultParentDeleteContactId, _defaultDeleteContactId, DateTime.UtcNow);
            var response         = deleteCollateralResult as HttpResult <Response <CollateralModel> >;
            var deleteCollateral = response.Value;

            //Assert
            Assert.IsNotNull(deleteCollateral);
            Assert.IsTrue(deleteCollateral.ResultCode == 0, "Collateral could not be deleted.");
        }