public AuthenticatedSessionIDManager()
 {
     _authenticatedSessionsEnabled = SessionSecurityConfiguration.Configuration.SessionIDAuthentication.Enabled;
     if (_authenticatedSessionsEnabled)
     {
         _sessionIdHelper = AuthenticatedSessionIDHelper.Instance;
     }
 }
Exemple #2
0
 public AuthenticatedSessionIDManager()
 {
     _authenticatedSessionsEnabled = SessionSecurityConfiguration.Configuration.SessionIDAuthentication.Enabled;
     if (_authenticatedSessionsEnabled)
     {
         _sessionIdHelper = AuthenticatedSessionIDHelper.Instance;
     }
 }
        public void Setup()
        {
            var httpContextMock = new Mock<HttpContextBase>();
            httpContextMock.Setup(c => c.Items).Returns(new ListDictionary());
            _httpContext = httpContextMock.Object;
            _configEnabled = new SessionSecurityConfigurationSection { SessionIDAuthentication = { Enabled = true } };

            _sessionIDHelper = new Mock<IAuthenticatedSessionIDHelper>().Object;
        }
Exemple #4
0
        public void Setup()
        {
            var httpContextMock = new Mock <HttpContextBase>();

            httpContextMock.Setup(c => c.Items).Returns(new ListDictionary());
            _httpContext   = httpContextMock.Object;
            _configEnabled = new SessionSecurityConfigurationSection {
                SessionIDAuthentication = { Enabled = true }
            };

            _sessionIDHelper = new Mock <IAuthenticatedSessionIDHelper>().Object;
        }
 internal AuthenticatedSessionIDManager(HttpContextBase context, SessionSecurityConfigurationSection config, IAuthenticatedSessionIDHelper helper)
 {
     _mockContext = context;
     _authenticatedSessionsEnabled = config.SessionIDAuthentication.Enabled;
     _sessionIdHelper = helper;
 }
Exemple #6
0
 internal AuthenticatedSessionIDManager(HttpContextBase context, SessionSecurityConfigurationSection config, IAuthenticatedSessionIDHelper helper)
 {
     _mockContext = context;
     _authenticatedSessionsEnabled = config.SessionIDAuthentication.Enabled;
     _sessionIdHelper = helper;
 }