public virtual void RegisterTenderStrategy(ITenderStrategy tenderStrategy) { if (tenderStrategy == null) { throw new NullReferenceException("Attempt to register a null tender strategy is invalid."); } this._tenderStrategy = tenderStrategy; }
public CashRegister(ICurrency currency, ITenderStrategy tenderStrategy) { RegisterCurrency(currency); RegisterTenderStrategy(tenderStrategy); }
public POSCashRegister(ICurrency currency, ITenderStrategy tenderStrategy) : base(currency, tenderStrategy) { }