public CronExpressionGeneratorSpecs() { var serviceProvider = new ServiceCollection() .AddSchedulingEngine() .BuildServiceProvider(); cronExpressionGenerator = serviceProvider.GetService <ICronExpressionGenerator>(); }
public ScheduledJobBuilder(ICronExpressionGenerator cronExpressionGenerator) { this.cronExpressionGenerator = cronExpressionGenerator; }