public void Execute_WithValidJob_RunsJob() { runner.Execute(sortingJobMock.Object); // Sleep due to fire and forget nature of Execute. - Might cause flakyness. Thread.Sleep(1000); sortingJobMock.Verify(s => s.Run(), Times.Once); }
public void Execute(string displayName, string jobName, int version, string job) { _jobRunner.Execute(jobName, version, job); }