public CashRegister(IChangeCalculationStrategy changeCalculationStrategy) { DenominationsInRegister = GetDefaultDenominationsInRegister(); _changeCalculationStrategy = changeCalculationStrategy; }
public CashRegister(IEnumerable <ICurrencyDenomination> denominationsInRegister, IChangeCalculationStrategy changeCalculationStrategy) { DenominationsInRegister = denominationsInRegister; _changeCalculationStrategy = changeCalculationStrategy; }
public CashRegister() { DenominationsInRegister = GetDefaultDenominationsInRegister(); _changeCalculationStrategy = new LargestDenominationFirstChangeCalculationStrategy(); }