예제 #1
0
 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);
 }
예제 #2
0
 public static Scheduler Create(SchedulerSettings settings)
 {
     instance = new Scheduler();
     return instance;
 }
예제 #3
0
 static Scheduler CreateScheduler()
 {
     var settings = new SchedulerSettings();
     return Scheduler.Create(settings);
 }