Exemplo n.º 1
0
        public void TestRunMultipleStepJob()
        {
            MultipleStepJob job       = new MultipleStepJob();
            AsyncProcessor  processor = new AsyncProcessor();

            using ( processor )
            {
                processor.RunJob(job);
            }

            if (job.counter != 5)
            {
                throw new Exception("TestRunMultipleStepJob(): multiple step async processing. " + job.counter);
            }
        }
Exemplo n.º 2
0
        public void TestMultipleStepJob()
        {
            MultipleStepJob job       = new MultipleStepJob();
            AsyncProcessor  processor = new AsyncProcessor();

            using ( processor )
            {
                processor.QueueJob(job);
                Thread.Sleep(200);
            }

            if (job.counter != 5)
            {
                throw new Exception("TestMultipleStepJob(): Invalid multiple step async processing. " + job.counter);
            }
        }