Пример #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);
        }
Пример #2
0
 public TimerProcessBehavior(FakeLogger fakeLogger)
 {
     _fakeLogger = fakeLogger;
 }