Inheritance: IClarifySessionCache
Esempio n. 1
0
        public void beforeAll()
        {
            _container = bootstrap_ioc.getContainer(c => c.AddRegistry<BootstrapRegistry>());

            _cut = _container.GetInstance<ClarifySessionCache>();
        }
Esempio n. 2
0
            public void beforeAll()
            {
                _userClarifySessionConfigurator = MockRepository.GenerateStub<IUserClarifySessionConfigurator>();
                _clarifyApplication = MockRepository.GenerateStub<IClarifyApplication>();

                _userSessionStartObserver = MockRepository.GenerateStub<IUserSessionStartObserver>();
                _userSessionEndObserver = MockRepository.GenerateStub<IUserSessionEndObserver>();

                _container = bootstrap_ioc.getContainer(c =>
                {
                    c.For<IUserClarifySessionConfigurator>().Use(_userClarifySessionConfigurator);
                    c.For<IClarifyApplication>().Use(_clarifyApplication);
                    c.For<IUserSessionStartObserver>().Use(_userSessionStartObserver);
                    c.For<IUserSessionEndObserver>().Use(_userSessionEndObserver);
                });

                _cut = _container.GetInstance<ClarifySessionCache>();

                _settings = _container.GetInstance<DovetailDatabaseSettings>();

                //have to create a REAL session because a test fake just won't do
                _expectedSession = CreateRealSession();
            }