Example #1
0
 public void Add(RateCurrency currency)
 {
     if (!_presenters.ContainsKey(currency.CurrencyCode))
     {
         _presenters[currency.CurrencyCode] = new RatePresenter(currency);
         Parameters[currency.CurrencyCode]  = $"Validitity - {currency.Validity} ms";
     }
 }
 public RatePresenter(RateCurrency currency)
 {
     _validityPeriod  = TimeSpan.FromMilliseconds(currency.Validity);
     _tolerancePeriod = TimeSpan.FromMilliseconds(currency.TolerancePeriod);
     _ticker          = currency.Ticker.ToString();
 }