public void Validate() { if (_candleStick.Date > _frame.GetByIndexReverse(0).Date) { throw new CandleStickCannotInsertBeforeLastCandleStickInFrame(); } }
public void Validate() { if (_frame.GetByIndexReverse(0).CompareTo(_candleSticks.ToList().Last()) <= 0) { throw new CandleStickCannotInsertBeforeLastCandleStickInFrame(); } }