예제 #1
0
        /// <summary>
        /// Change money with current rate
        /// </summary>
        /// <param name="valueToChange">Amount of money to change</param>
        /// <returns>Changed money</returns>
        public override double Change(double valueToChange)
        {
            var intermediateChange = _throughExchange.Change(_initialCurrency, _intermediateCurrency, valueToChange);

            return(_nextExchange.Change(intermediateChange));
        }
예제 #2
0
 /// <summary>
 /// Change money with current rate
 /// </summary>
 /// <param name="valueToChange">Amount of money to change</param>
 /// <returns>Changed money</returns>
 public override double Change(double valueToChange)
 {
     return(_directExchangeCurrency.Change(_initialCurrency, _targetCurrency, valueToChange));
 }