using System; using System.Collections.Generic; using System.Text; namespace TestIOC { public class DisposableComponent : IDisposable { public ITest ITest; public Boolean IsDisposed = false; public DisposableComponent(ITest iTest) { ITest = iTest; } #region IDisposable Members public void Dispose() { IsDisposed = true; } #endregion } }