public void ShouldReturnFalseWhenNotificationNotFound() { _notificationProvider.Setup(_ => _.GetNext()).Returns((Notification)null); var result = _target.ProcessNext(); result.Should().BeFalse(); _notificationProvider.Verify(_ => _.GetNext(), Times.Once); }
/// <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(_notificationProcessor.ProcessNext());