title: Mocking Hangfire RecurringJob Dependency in .Net Core 2
body: <p>Consider the following controller:</p>
  
  <pre><code>public class SubmissionController : Controller
  { 
      public SubmissionController()
      { }
  
      public IActionResult Post()
      {
          RecurringJob.AddOrUpdate(() =&gt; InitiateSubmission(), Cron.Minutely);
  
          return Ok("Periodic submission triggered");
      }
  }
  </code></pre>
  
  <p>Does Hangfire offer an abstraction inject a dependency for RecurringJob class? I have done some research and the only available abstraction is <code>IBackgroundJobClient</code>, which does not have the option to schedule a recurring job. </p>
  
  <p>I need to verify that the job has been added in a unit test.</p>