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; }
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; }