示例#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);
        }