/// <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)); }
/// <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)); }