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);
 }
Esempio n. 2
0
 private static string GetTokenCacheKeyString(SecurityTokenCacheKey key)
 {
     return string.Format("{0}; {1}; {2}", key.ContextId, key.KeyGeneration, key.EndpointId);
 }