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); } }
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); } }