public void setup()
 {
     _item = Substitute.For<IWorkQueueItem<object>>();
     _waitHandle = Substitute.For<IWaitHandle>();
     _subject = new BoundedWorkQueueItem<object>(_item, _waitHandle);
 }
 public void setup()
 {
     _finished = new List<string>();
     _cancelled = new List<string>();
     _subject = new WorkQueueItem<string>("data", s => _finished.Add(s), s => _cancelled.Add(s));
 }