Пример #1
0
        public VendingMachine(IMoneyAcceptor acceptor)
        {
            _drinkPriceSpecification = new DrinkPriceSpecification();

            _drinkStock   = new DrinkStocker();
            _moneyStocker = new MoneyStocker(acceptor);
        }
Пример #2
0
        public VendingMachine(IMoneyAcceptor acceptor)
        {
            _drinkPriceSpecification = new DrinkPriceSpecification();

            _drinkStock = new DrinkStocker();
            _moneyStocker = new MoneyStocker(acceptor);
        }
Пример #3
0
 public MoneyStocker(IMoneyAcceptor acceptor)
 {
     _acceptor = acceptor;
 }
Пример #4
0
 public MoneyStocker(IMoneyAcceptor acceptor)
 {
     _acceptor = acceptor;
 }