Esempio n. 1
0
        public void NextIntervalTests(RollingInterval interval, DateTime instant, DateTime?currentCheckpoint, DateTime?nextCheckpoint)
        {
            var current = interval.GetCurrentCheckpoint(instant);

            Assert.Equal(currentCheckpoint, current);

            var next = interval.GetNextCheckpoint(instant);

            Assert.Equal(nextCheckpoint, next);
        }
Esempio n. 2
0
 public DateTime?GetCurrentCheckpoint(DateTime instant) => _interval.GetCurrentCheckpoint(instant);