public void LocalizationInterceptorStoresCulturePassedToHimInTheConstructor()
        {
            LocalizationInterceptor interceptor = new LocalizationInterceptor(CULTURE_SPANISH, null);

            Assert.AreEqual(CULTURE_SPANISH, interceptor.Culture);
        }
        public void LocalizationInterceptorUsesCurrentThreadCultureIfNoCultureIsPassed()
        {
            LocalizationInterceptor interceptor = new LocalizationInterceptor(null);

            Assert.AreEqual(Thread.CurrentThread.CurrentCulture, interceptor.Culture);
        }
        public void TestsInitialization()
        {
            factory = new Mock<ISessionFactory>();
            session = new Mock<ISession>();
            factory.Setup(x => x.GetCurrentSession()).Returns(session.Object);

            interceptor = new LocalizationInterceptor(CULTURE_SPANISH, factory.Object);
        }
        public void LocalizationInterceptorStoresSessionsFactoryPassedToHimInTheConstructor()
        {
            LocalizationInterceptor interceptor = new LocalizationInterceptor(null, factory.Object);

            Assert.AreEqual(factory.Object, interceptor.Factory);
        }