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(); }
protected override void DisposeCaches() { _iocManager.Dispose(); }
public void Dispose() { localIocManager.Dispose(); }