示例#1
0
        public void GetPaymentInstrumentsForInvoiceReturnsInstrumentsForValidInvoice()
        {
            List <PaymentInstrument> paymentInstruments = _paymentInstrumentRepository.
                                                          GetPaymentInstrumentsForInvoice(VALID_MEDICAL_VENDOR_INVOICE_ID);

            Assert.IsNotNull(paymentInstruments);
            Assert.IsNotEmpty(paymentInstruments);
        }
示例#2
0
        public void GetPaymentInstrumentsForInvoiceGetsInstrumentsFor0PaymentsWhenInvoiceDoesNotExist()
        {
            ExpectGetDataAccessAdapterAndDispose();
            ExpectFetchEntityCollection();

            _mocks.ReplayAll();
            _paymentInstrumentRepository.GetPaymentInstrumentsForInvoice(0);
            _mocks.VerifyAll();
        }