public static void BeforeFeature() { var efDao = new EFPaymentDAO(); var paymentProcessor = new CoinPaymentProcessor(efDao); paymentProcessor.ClearPayments(); }
public void Setup() { _transactionScope = new TransactionScope(); _paymentDAO = new EFPaymentDAO(); var paymentProcessor = new CoinPaymentProcessor(_paymentDAO); _vendingMachine = new VendingMachine(paymentProcessor); }
public void Setup() { _transactionScope = new TransactionScope(); var paymentDao = new EFPaymentDAO(); var paymentProcessor = new CoinPaymentProcessor(paymentDao); var vendingMachine = new VendingMachine(paymentProcessor); _controller = new VendingMachineController(vendingMachine); }
public void Setup() { _product = null; _changeReleased = 0; _transactionScope = new TransactionScope(); var efDao = new EFPaymentDAO(); var paymentProcessor = new CoinPaymentProcessor(efDao); _vendingMachine = new VendingMachine(paymentProcessor); }
public void Setup() { // TODO: Setup acceptance tests to work with both EF and ADO payment DAOs _product = null; _changeReleased = 0; _transactionScope = new TransactionScope(); var efDao = new EFPaymentDAO(); var paymentProcessor = new CoinPaymentProcessor(efDao); _vendingMachine = new VendingMachine(paymentProcessor); _vendingMachine.ReleaseChange(); }