public ICurrencyPairUpdate Create(CurrencyPairUpdateDto currencyPairUpdate) { var cp = new CurrencyPair( currencyPairUpdate.CurrencyPair.Symbol, currencyPairUpdate.CurrencyPair.RatePrecision, currencyPairUpdate.CurrencyPair.PipsPosition, _priceRepository); var update = new CurrencyPairUpdate( currencyPairUpdate.UpdateType == UpdateTypeDto.Added ? UpdateType.Add : UpdateType.Remove, cp); return(update); }
public ICurrencyPairUpdate Create(CurrencyPairUpdateDto currencyPairUpdate) { var cp = new CurrencyPair( currencyPairUpdate.CurrencyPair.Symbol, currencyPairUpdate.CurrencyPair.RatePrecision, currencyPairUpdate.CurrencyPair.PipsPosition, _priceRepository); var update = new CurrencyPairUpdate( currencyPairUpdate.UpdateType == UpdateTypeDto.Added ? UpdateType.Add : UpdateType.Remove, cp); return update; }