Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public TimerProcessBehavior(FakeLogger fakeLogger)
 {
     _fakeLogger = fakeLogger;
 }