Ejemplo n.º 1
0
        public void ReturnsTrueWhenItsTimeToRun()
        {
            _timeActions.Stub(x => x.Now()).Return(new DateTime(2013, 4, 23));

            var monitorJob = new MonitorJob
            {
                LastTimeThisJobRan = new DateTime(2013, 4, 22),
                Threshold          = 5,
                ThresholdType      = ThresholdType.Seconds,
            };
            var result = _monitorJobActions.ThisJobShouldRunNow(monitorJob);

            Assert.That(result, Is.True);
        }