public void setup()
 {
     _dispatcher = Substitute.For<IDispatch<object>>();
     _queue = new InMemoryWorkQueue<object>();
     _subject = new DirectWorkerPool<object>();
     _subject.SetSource(_dispatcher, _queue);
 }
 public void setup()
 {
     _actionCalled = false;
     _dispatcher = Substitute.For<IDispatch<object>>();
     _dispatcher.MaximumInflight().Returns(1);
     _queue = Substitute.For<IWorkQueue<object>>();
     _subject = new ThreadedWorkerPool<object>("name", 1);
     _subject.SetSource(_dispatcher, _queue);
 }