public void CreateInstanceTest() { var settings = new SchedulerSettings(); var scheduler = Scheduler.Create(settings); var instance = Scheduler.Instance; Assert.IsNotNull(scheduler); Assert.IsNotNull(instance); Assert.AreSame(scheduler, instance); }
public static Scheduler Create(SchedulerSettings settings) { instance = new Scheduler(); return instance; }
static Scheduler CreateScheduler() { var settings = new SchedulerSettings(); return Scheduler.Create(settings); }