Exemplo n.º 1
0
        public void GetPaymentInstrumentsForInvoiceReturnsInstrumentsForValidInvoice()
        {
            List <PaymentInstrument> paymentInstruments = _paymentInstrumentRepository.
                                                          GetPaymentInstrumentsForInvoice(VALID_MEDICAL_VENDOR_INVOICE_ID);

            Assert.IsNotNull(paymentInstruments);
            Assert.IsNotEmpty(paymentInstruments);
        }
Exemplo n.º 2
0
        public void GetPaymentInstrumentsForInvoiceGetsInstrumentsFor0PaymentsWhenInvoiceDoesNotExist()
        {
            ExpectGetDataAccessAdapterAndDispose();
            ExpectFetchEntityCollection();

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