Exemplo n.º 1
0
 public void Dispose(bool disposing)
 {
     if (!_disposed && disposing)
     {
         _container = null;
     }
     _disposed = true;
 }
Exemplo n.º 2
0
        protected override void OnTeardown()
        {
            base.OnTeardown();

            ServiceLocatorUnitTestHelper.SetThreadLocalServiceLocator(null);
            Container             = null;
            StructureMapContainer = null;
        }
Exemplo n.º 3
0
 public void Dispose(bool disposing)
 {
     if (!_disposed && disposing)
     {
         _container = null;
     }
     _disposed = true;
 }
Exemplo n.º 4
0
        protected override void OnSetup()
        {
            base.OnSetup();

            StructureMapContainer = new Container();
            Container             = new IoC.StructureMap.Container(StructureMapContainer);

            StructureMapContainer.Configure(c => c.For <IDomainEventService>().HybridHttpOrThreadLocalScoped().Use <DomainEventService> ());

            ServiceLocatorUnitTestHelper.SetThreadLocalServiceLocator(Container);
        }
Exemplo n.º 5
0
 public ServiceLocatorFixture()
 {
     StructureMapContainer = new Container();
     _container            = new Pillar.IoC.StructureMap.Container(StructureMapContainer);
 }
Exemplo n.º 6
0
 public ServiceLocatorFixture()
 {
     StructureMapContainer = new Container();
     _container = new Pillar.IoC.StructureMap.Container(StructureMapContainer);
 }