示例#1
0
 public void Setup()
 {
     _locator = new TestServiceLocator();
     _register = new BusRegisterer(_locator);
     if (TestHandleRegistrer.HandlerList.Count == 0)
         _register.Register(GetType());
 }
示例#2
0
 private void RegisterHandlers(IServiceLocator serviceLocator)
 {
     var registerer = new BusRegisterer();
     registerer.Register(serviceLocator,typeof(IHandles<>),typeof(ReadModelFacade));
 }