public void CallingDefaultConstructorLeavesReferencesMarkedUninitialized()
        {
            DerivedSessionScopeSettings sss = new DerivedSessionScopeSettings();
            // config values are set to their defaults
            Assert.AreEqual(SessionScopeSettings.SINGLESESSION_DEFAULT, sss.SingleSession);
            Assert.AreEqual(SessionScopeSettings.FLUSHMODE_DEFAULT, sss.DefaultFlushMode);

            IInterceptor interceptor = sss.EntityInterceptor;
            Assert.IsNull(interceptor);

            try
            {
                ISessionFactory sessionFactory = sss.SessionFactory;
                Assert.Fail("should fail, because derived classes must override ResolveSessionFactory()");
            }
            catch (NotSupportedException) { }
        }
        public void CallingDefaultConstructorLeavesReferencesMarkedUninitialized()
        {
            DerivedSessionScopeSettings sss = new DerivedSessionScopeSettings();

            // config values are set to their defaults
            Assert.AreEqual(SessionScopeSettings.SINGLESESSION_DEFAULT, sss.SingleSession);
            Assert.AreEqual(SessionScopeSettings.FLUSHMODE_DEFAULT, sss.DefaultFlushMode);

            IInterceptor interceptor = sss.EntityInterceptor;

            Assert.IsNull(interceptor);

            try
            {
                ISessionFactory sessionFactory = sss.SessionFactory;
                Assert.Fail("should fail, because derived classes must override ResolveSessionFactory()");
            }
            catch (NotSupportedException) { }
        }