示例#1
0
        public void ShouldReturnFalseWhenNextEventNotFound()
        {
            var result = _target.ProcessNextEvent();

            result.Should().BeFalse();
        }
示例#2
0
 /// <summary>
 ///   Executes the job.
 /// </summary>
 /// <returns>
 ///   Positive value to repeat the task, negative value or 0 - to finish the task and to wait time interval before the
 ///   next run.
 /// </returns>
 protected override int Process() => Convert.ToInt32(_eventProcessor.ProcessNextEvent());