public void DisposablesAreTrackedAndDisposed()
        {
            var resolver = new DefaultDependencyResolver();
            resolver.Register(typeof(MyDisposable), () => new MyDisposable());

            var disposable = resolver.Resolve<MyDisposable>();
            resolver.Dispose();
            Assert.True(disposable.Disposed);
        }
        public void DisposablesAreTrackedAndDisposed()
        {
            var resolver = new DefaultDependencyResolver();

            resolver.Register(typeof(MyDisposable), () => new MyDisposable());

            var disposable = resolver.Resolve <MyDisposable>();

            resolver.Dispose();
            Assert.True(disposable.Disposed);
        }