Beispiel #1
0
 /// <summary>
 /// Set the amount of the given denomination
 /// </summary>
 /// <param name="denom"></param>
 /// <param name="count"></param>
 public void SetAmount(IDenomination denom, int count)
 {
     // Don't set if count is negative
     if (count > 0)
     {
         Amounts[denom] = count;
     }
 }
 public ChangeResult(IDenomination denomination, int quantity)
 {
     Denomination = denomination;
     Quantity     = quantity;
 }