public void DeleteContractPayerInfoByIdMockTest1() { var mockAddEditContractPayerInfo = new Mock <IContractPayerInfoRepository>(); ContractPayerInfo objAddEditContractPayerInfo = new ContractPayerInfo { ContractPayerInfoId = 1, UserName = "******" }; mockAddEditContractPayerInfo.Setup(f => f.DeleteContractPayerInfo(objAddEditContractPayerInfo)).Returns(true); ContractPayerInfoLogic target = new ContractPayerInfoLogic(mockAddEditContractPayerInfo.Object); bool actual = target.DeleteContractPayerInfo(objAddEditContractPayerInfo); Assert.AreEqual(true, actual); }
public bool DeleteContractPayerInfoById(ContractPayerInfo contractPayerInfo) { return(_contractLogic.DeleteContractPayerInfo(contractPayerInfo)); }