/// <summary> /// Create some necessary parts and some dummy Jobs. /// </summary> public BenchmarkSystemTest() { scheduler = system.GetScheduler(); Job1 = new Job( p => { Console.WriteLine("Job1 is running"); return(0); }, "job1", "Michael", 4, 40 ); Job2 = new Job( p => { Console.WriteLine("Job2 is running"); return(0); }, "job2", "Michael", 4, 5 ); Job3 = new Job( p => { Console.WriteLine("Job3 is running"); return(0); }, "job3", "Michael", 1, 5 ); Job4 = new Job( p => { Console.WriteLine("Job4 is running"); return(0); }, "job4", "Michael", 6, 10 ); }
/// <summary> /// Create some necessary parts and some dummy jobs. /// </summary> public BenchmarkSystemTest() { scheduler = system.GetScheduler(); Logger logger = new Logger(system); job1 = new Job( p => { Console.WriteLine("Job1 is running"); return(0); }, 4, 40, new Owner { name = "Michael" } ); job2 = new Job( p => { Console.WriteLine("Job2 is running"); return(0); }, 4, 5, new Owner { name = "Michael" } ); job3 = new Job( p => { Console.WriteLine("Job3 is running"); return(0); }, 1, 5, new Owner { name = "Michael" } ); job4 = new Job( p => { Console.WriteLine("Job4 is running"); return(0); }, 6, 10, new Owner { name = "Michael" } ); }