Exemple #1
0
        public void Init()
        {
            LDAPCPConfig configFromConfigDB = LDAPCPConfig.GetConfiguration(UnitTestsHelper.ClaimsProviderConfigName, UnitTestsHelper.SPTrust.Name);

            // Create a local copy, otherwise changes will impact the whole process (even without calling Update method)
            Config = configFromConfigDB.CopyPersistedProperties();
            // Reset configuration to test its default for the tests
            Config.ResetCurrentConfiguration();
        }
Exemple #2
0
    public static void InitializeConfiguration(LDAPCPConfig config)
    {
        config.ResetCurrentConfiguration();

#if DEBUG
        config.LDAPQueryTimeout = 99999;
#endif

        config.Update();
    }