Example #1
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public AccountingMachine(ChangeStocker changeStocker)
 {
     this._changeStocker = changeStocker;
 }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="moneyStocker"></param>
 public ChangeCalculator(ChangeStocker moneyStocker)
 {
     this._moneyStocker = moneyStocker;
 }
Example #3
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public Vending(DrinkStocker drinkStocker, ChangeStocker changeStocker)
 {
     this._drinkStocker      = drinkStocker;
     this._accountingMachine = new AccountingMachine(changeStocker);
 }