Beispiel #1
0
 public Action <IIocRegistrator> RegistrationLogic(ITypeFinder typeFinder, Saturn72Config config)
 {
     return(reg =>
     {
         var ep = new Mock <IEventPublisher>();
         reg.RegisterInstance(ep.Object);
     });
 }
Beispiel #2
0
 public Action <IIocRegistrator> RegistrationLogic(ITypeFinder typeFinder, Saturn72Config config)
 {
     return(reg =>
     {
         RegisterInterceptors(reg, typeFinder);
         RegisterServices(reg, typeFinder);
         RegisterRepositories(reg, typeFinder);
         reg.RegisterType <MemoryLogger, ILogger>(LifeCycle.PerDependency);
     });
 }
Beispiel #3
0
 public Action <IIocRegistrator> RegistrationLogic(ITypeFinder typeFinder, Saturn72Config config)
 {
     return(reg => reg.RegisterType <DummyCommander, IDummyCommander1>(LifeCycle.PerDependency));
 }