Exemple #1
0
        public void AddNewPaymentTypeDrgPaymentIfNull()
        {
            var mockPaymentTypeDrgPayment = new Mock <IPaymentTypeDrgPaymentRepository>();

            mockPaymentTypeDrgPayment.Setup(f => f.AddEditPaymentTypeDrgPayment(It.IsAny <PaymentTypeDrg>())).Returns(1);
            PaymentTypeDrgLogic target = new PaymentTypeDrgLogic(mockPaymentTypeDrgPayment.Object);
            long actual = target.AddEditPaymentType(null);

            Assert.AreEqual(1, actual);
        }
 /// <summary>
 /// Add & Edit Payment Type DRG Schedules
 /// </summary>
 /// <param name="paymentTypeDrgPayment">PaymentTypeDRGPayment Object</param>
 /// <returns>Inserted Payment Id</returns>
 public long AddEditPaymentTypeDrgPayment(PaymentTypeDrg paymentTypeDrgPayment)
 {
     return(_paymentTypeDrgPaymentLogic.AddEditPaymentType(paymentTypeDrgPayment));
 }