Ejemplo n.º 1
0
            public void And_controller_implements_IDisposable_then_dispose_should_be_called()
            {
                var controller = new DisposableIocTestController();

                IControllerFactory factory = new IoCControllerFactory(_dependencyResolver);

                factory.ReleaseController(controller);

                Assert.IsTrue(controller.IsDisposed);
            }
Ejemplo n.º 2
0
            public void And_controller_implements_IDisposable_then_dispose_should_be_called()
            {
                var controller = new DisposableIocTestController();

                IControllerFactory factory = new IoCControllerFactory(_dependencyResolver);
                factory.ReleaseController(controller);

                Assert.IsTrue(controller.IsDisposed);
            }