public static void BeforeFeature()
        {
            var efDao            = new EFPaymentDAO();
            var paymentProcessor = new CoinPaymentProcessor(efDao);

            paymentProcessor.ClearPayments();
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 5
0
        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();
        }