Пример #1
0
            public void And_default_resolver_is_null_then_ReleaseImplementation_should_not_be_called_on_the_default_resolver()
            {
                DependencyResolver.InitializeWith(null);
                var controller = new IocTestController();

                IControllerFactory factory = new IoCControllerFactory();

                factory.ReleaseController(controller);
            }
Пример #2
0
            public void Then_ReleaseImplementation_should_be_called_on_the_specified_resolver()
            {
                var controller = new IocTestController();

                _dependencyResolver.Expect(r => r.DisposeImplementation(controller));

                IControllerFactory factory = new IoCControllerFactory(_dependencyResolver);

                factory.ReleaseController(controller);
            }
Пример #3
0
            public void Then_ReleaseImplementation_should_be_called_on_the_default_resolver()
            {
                DependencyResolver.InitializeWith(_dependencyResolver);
                var controller = new IocTestController();

                _dependencyResolver.Expect(r => r.DisposeImplementation(controller));

                IControllerFactory factory = new IoCControllerFactory();

                factory.ReleaseController(controller);
            }
Пример #4
0
            public void Then_ReleaseImplementation_should_be_called_on_the_specified_resolver()
            {
                var controller = new IocTestController();

                _dependencyResolver.Expect(r => r.DisposeImplementation(controller));

                IControllerFactory factory = new IoCControllerFactory(_dependencyResolver);
                factory.ReleaseController(controller);
            }
Пример #5
0
            public void Then_ReleaseImplementation_should_be_called_on_the_default_resolver()
            {
                DependencyResolver.InitializeWith(_dependencyResolver);
                var controller = new IocTestController();

                _dependencyResolver.Expect(r => r.DisposeImplementation(controller));

                IControllerFactory factory = new IoCControllerFactory();
                factory.ReleaseController(controller);
            }
            public void And_default_resolver_is_null_then_ReleaseImplementation_should_not_be_called_on_the_default_resolver()
            {
                DependencyResolver.InitializeWith(null);
                var controller = new IocTestController();

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