Exemplo n.º 1
0
 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();
     }
 }