Ejemplo n.º 1
0
        public virtual void RegisterTenderStrategy(ITenderStrategy tenderStrategy)
        {
            if (tenderStrategy == null)
            {
                throw new NullReferenceException("Attempt to register a null tender strategy is invalid.");
            }

            this._tenderStrategy = tenderStrategy;
        }
Ejemplo n.º 2
0
 public CashRegister(ICurrency currency, ITenderStrategy tenderStrategy)
 {
     RegisterCurrency(currency);
     RegisterTenderStrategy(tenderStrategy);
 }
Ejemplo n.º 3
0
 public POSCashRegister(ICurrency currency, ITenderStrategy tenderStrategy) : base(currency, tenderStrategy)
 {
 }