public void EditPaymentTypePerVisitDetailsIfNull()
        {
            var mockProductRepository = new Mock <IPaymentTypePerVisitRepository>();

            mockProductRepository.Setup(f => f.AddEditPaymentTypePerVisitDetails(It.IsAny <PaymentTypePerVisit>())).Returns(0);
            PaymentTypePerVisitLogic target = new PaymentTypePerVisitLogic(mockProductRepository.Object);
            long actual = target.AddEditPaymentType(null);

            Assert.IsNotNull(actual);
            Assert.AreEqual(0, actual);
        }
        public void AddNewPaymentTypePerVisitDetailsIfNotNull()
        {
            var mockProductRepository = new Mock <IPaymentTypePerVisitRepository>();

            mockProductRepository.Setup(f => f.AddEditPaymentTypePerVisitDetails(It.IsAny <PaymentTypePerVisit>())).Returns(2);
            PaymentTypePerVisitLogic target = new PaymentTypePerVisitLogic(mockProductRepository.Object);
            PaymentTypePerVisit      objPaymentTypePerVisit = new PaymentTypePerVisit {
                PaymentTypeDetailId = 1
            };
            long actual = target.AddEditPaymentType(objPaymentTypePerVisit);

            // Assert.IsNull(actual);
            Assert.AreEqual(2, actual);
            //  Assert.IsTrue(actual.Equals(null));
        }
 public long AddEditPaymentTypePerVisitDetails(PaymentTypePerVisit paymentTypePerVisit)
 {
     return(_paymentTypePerVisitDetailsLogic.AddEditPaymentType(paymentTypePerVisit));
 }