protected override void EstablishContext() { alternateSecurityTokenCacheKey = "not a SecurityTokenCacheKey"; sessionCollection = new Dictionary<string, object>(); suppliedSecurityTokenCacheKey = new SecurityTokenCacheKey("endpointId", new System.Xml.UniqueId(), new System.Xml.UniqueId(), true); suppliedSecurityTokenCacheKeyString = GetTokenCacheKeyString(suppliedSecurityTokenCacheKey); sessionStateProvider = new HashtableSessionStateProvider(); suppliedSecurityToken = mocks.StrictMock<SecurityToken>(); securityTokenCache = new EdFiSecurityTokenCache(sessionStateProvider); }
private static string GetTokenCacheKeyString(SecurityTokenCacheKey key) { return string.Format("{0}; {1}; {2}", key.ContextId, key.KeyGeneration, key.EndpointId); }