public void Setup() { _interactor = MockRepository.GenerateStub<IInteract>(); _interactor.Stub(i => i.React()).Throw(new InteractorException()); _closer = MockRepository.GenerateMock<INeedClosing>(); _closer.Stub(c => c.Close()).Throw(new CloserException()); _worker = new Worker(_interactor, _closer); }
public void Setup() { _interactor = MockRepository.GenerateStub<IInteract>(); _closer = MockRepository.GenerateMock<INeedClosing>(); _worker = new Worker(_interactor, _closer); }