public void StdServiceJobManager_Repeat_Start_Stop() {
            using(var jobManager = new StdServiceJobManager()) {
                jobManager.Start();
                Assert.IsTrue(jobManager.IsStarted);

                Thread.Sleep(5 * 1000);

                jobManager.Shutdown();
                Assert.IsFalse(jobManager.IsStarted);

                Thread.Sleep(10);

                jobManager.Start();
                Assert.IsTrue(jobManager.IsStarted);

                Thread.Sleep(3 * 1000);
            }
        }
        public void StdServiceJobManager_Disposable() {
            using(var jobManager = new StdServiceJobManager()) {
                jobManager.Start();

                Assert.IsTrue(jobManager.IsStarted);

                Thread.Sleep(5 * 1000);
            }
        }
Example #3
0
        public void StdServiceJobManager_Repeat_Start_Stop()
        {
            using (var jobManager = new StdServiceJobManager()) {
                jobManager.Start();
                Assert.IsTrue(jobManager.IsStarted);

                Thread.Sleep(5 * 1000);

                jobManager.Shutdown();
                Assert.IsFalse(jobManager.IsStarted);

                Thread.Sleep(10);

                jobManager.Start();
                Assert.IsTrue(jobManager.IsStarted);

                Thread.Sleep(3 * 1000);
            }
        }
Example #4
0
        public void StdServiceJobManager_Disposable()
        {
            using (var jobManager = new StdServiceJobManager()) {
                jobManager.Start();

                Assert.IsTrue(jobManager.IsStarted);

                Thread.Sleep(5 * 1000);
            }
        }