public void GetPaymentInstrumentsForMedicalVendorPaymentGivesEmptyCollectionToFactoryForInvalidId() { ExpectGetInstrumentsForPayment(null); _mocks.ReplayAll(); _paymentInstrumentRepository.GetPaymentInstrumentsForPayment(0); _mocks.VerifyAll(); Assert.AreEqual(0, _numberOfEntitiesGivenToFactory); }
public void GetPaymentInstrumentsForPaymentReturnsInstrumentsForValidPayment() { List <PaymentInstrument> paymentInstruments = _paymentInstrumentRepository. GetPaymentInstrumentsForPayment(VALID_MEDICAL_VENDOR_PAYMENT_ID); Assert.IsNotNull(paymentInstruments); Assert.IsNotEmpty(paymentInstruments); }