public PaymentManager(IContextContainer container) : base(container) { _paypalPaymentDAO = new PaypalPaymentDAO(container); _easyPayPaymentDAO = new EasyPayPaymentDAO(container); _cashPaymentDAO = new CashPaymentDAO(container); _paymentDAO = new PaymentDAO(container); _currencyDAO = new CurrencyDAO(container); }
public void Setup() { _transactionScope = new TransactionScope(); _paymentDao = new EFPaymentDAO(); var paymentProcessor = new CoinPaymentProcessor(_paymentDao); var vendingMachine = new VendingMachine(paymentProcessor); _controller = new VendingMachineController(vendingMachine); }
public PaymentService(IPaymentDAO paymentDao) { _paymentDao = paymentDao; }
public PaymentService() { _paymentDao = new PaymentDAO(); }
public CoinPaymentProcessor(IPaymentDAO dao) { _paymentDAO = dao; }
public VendingMachineTests(IPaymentDAO paymentDao) { _injectedPaymentDao = paymentDao; }
public CoinPaymentProcessor(IPaymentDAO dao) { paymentDAO = dao; }
public PaymentService(IPaymentDAO paymentDAO) { this._paymentDAO = paymentDAO; }
public PaymentProcess() { paymentDao = DAOFactory.getpaymentdao(); }