Example #1
0
        public void GetPaymentPerCaseDetailsMockTestIfNull()
        {
            PaymentTypePerCase result = new PaymentTypePerCase();

            _mockPaymentTypePerCaseRepository = new Mock <IPaymentTypePerCaseRepository>();
            _mockPaymentTypePerCaseRepository.Setup(f => f.GetPaymentTypePerCase(It.IsAny <PaymentTypePerCase>())).Returns(result);
            _target = new PaymentTypePerCaseLogic(_mockPaymentTypePerCaseRepository.Object);
            PaymentTypePerCase actual = (PaymentTypePerCase)_target.GetPaymentType(null);

            Assert.AreEqual(result, actual);
        }
Example #2
0
        public void GetPaymentPerCaseDetailsMockTestIfNotNull()
        {
            PaymentTypePerCase objPaymentTypePerCase = new PaymentTypePerCase {
                PaymentTypeId = 6, ContractId = 890, ServiceTypeId = null
            };
            PaymentTypePerCase result = new PaymentTypePerCase {
                Rate = 234, PaymentTypeDetailId = 678
            };

            _mockPaymentTypePerCaseRepository = new Mock <IPaymentTypePerCaseRepository>();
            _mockPaymentTypePerCaseRepository.Setup(f => f.GetPaymentTypePerCase(objPaymentTypePerCase)).Returns(result);
            _target = new PaymentTypePerCaseLogic(_mockPaymentTypePerCaseRepository.Object);
            PaymentTypePerCase actual = (PaymentTypePerCase)_target.GetPaymentType(objPaymentTypePerCase);

            Assert.AreEqual(result, actual);
        }
Example #3
0
 public PaymentTypePerCase GetPaymentPerCaseDetails(PaymentTypePerCase paymentTypePerCase)
 {
     return((PaymentTypePerCase)_paymentTypePerCaseDetailsLogic.GetPaymentType(paymentTypePerCase));
 }