Exemple #1
0
        public void GetPaymentTable()
        {
            var mockPaymentTableLogic    = new Mock <IPaymentTableRepository>();
            PaymentTableContainer result = new PaymentTableContainer();

            mockPaymentTableLogic.Setup(f => f.GetPaymentTable(It.IsAny <ClaimFieldDoc>())).Returns(result);
            PaymentTableLogic target = new PaymentTableLogic(mockPaymentTableLogic.Object);

            PaymentTableContainer actual = target.GetPaymentTable(new ClaimFieldDoc());

            Assert.AreEqual(result, actual);
        }
Exemple #2
0
        public void GetCustomPaymentTable()
        {
            var repository = new Mock <IPaymentTableRepository>();
            PaymentTableContainer result = new PaymentTableContainer();
            var value = new ClaimFieldDoc {
                ClaimFieldDocId = 10101, ClaimFieldId = 35, PageSetting = new PageSetting {
                    Skip = 0, SortDirection = "", SortField = "", Take = 5
                }
            };

            repository.Setup(
                f => f.GetCustomPaymentTable(value)).Returns(result);
            PaymentTableLogic target = new PaymentTableLogic(repository.Object);

            PaymentTableContainer actual =
                target.GetPaymentTable(value);

            Assert.AreEqual(result, actual);
        }
 public PaymentTableContainer GetPaymentTable(ClaimFieldDoc claimFieldDoc)
 {
     return(_paymentTableLogic.GetPaymentTable(claimFieldDoc));
 }