protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         LocalIocManager.Dispose();
     }
 }
        public void Should_Call_Dispose_Of_Transient_Dependency_When_IocManager_Is_Disposed()
        {
            using (IIocManager iocManager = CreateTestIocManager())
            {
                iocManager.Registrar.RegisterTransient <SimpleDisposableObject>();

                var obj = iocManager.Resolver.Resolve <SimpleDisposableObject>();

                iocManager.Dispose();

                obj.DisposeCount.ShouldBe(1);
            }
        }
 public virtual void Dispose()
 {
     LocalIocManager.Dispose();
 }
Esempio n. 4
0
 protected override void DisposeCaches()
 {
     _iocManager.Dispose();
 }
Esempio n. 5
0
 public void Dispose()
 {
     localIocManager.Dispose();
 }