public TestObjectHandlerModule(FakeRepo repo, FakeBus bus, FakeLogger logger) { Process = testObjectToHandle => { repo.Save(testObjectToHandle); return(testObjectToHandle); }; Dispatch = testObjectToDispatch => { bus.Publish(testObjectToDispatch); }; OnProcessError = (testObjectThatFailed, exception) => logger.LogSpecialCase(exception); }
public TimerProcessBehavior(FakeLogger fakeLogger) { _fakeLogger = fakeLogger; }