public void that_IDatabaseService_of_NHibernateSessinoAttribute_is_injected()
        {
            FilterAttributeDependencyInversionConfigurator.Configure <IDatabaseServices>();

            SetupDatabaseServices();

            InvokeTestNhibernateSessionAttribute();
        }
        public void that_a_TestAttributeException_is_thrown_when_Settings_of_TestAttribute_are_not_injected_when_they_should()
        {
            FilterAttributeDependencyInversionConfigurator.Configure <IShouldNotBeInjectedSetting>();

            ConfigureTypesForTestAttribute();

            var methodName = "Test";

            Assert.IsTrue(_invoker.InvokeAction(_context, methodName));
        }
        public void that_InjectedSetting_is_injected_but_not_ShouldNotBeInjectedSetting_of_TestAttribute()
        {
            FilterAttributeDependencyInversionConfigurator.Configure <TestAttribute>();

            ConfigureTypesForTestAttribute();

            var methodName = "Test";

            Assert.IsTrue(_invoker.InvokeAction(_context, methodName));
        }
        public void that_IShouldBeInjectedSetting_of_TestAttribute_is_injected()
        {
            FilterAttributeDependencyInversionConfigurator.Configure <TestAttribute>();

            var testSetting = new TestImplementation();

            ObjectFactory.Configure(x => x.For <IShouldBeInjectedSetting>().Use(testSetting));

            var methodName = "Test";

            Assert.IsTrue(_invoker.InvokeAction(_context, methodName));
        }