예제 #1
0
 public void Init()
 {
     Console.WriteLine($"Starting custom config test {TestContext.CurrentContext.Test.Name}...");
     Config       = AzureCPConfig.GetConfiguration(UnitTestsHelper.ClaimsProviderConfigName, UnitTestsHelper.SPTrust.Name);
     BackupConfig = Config.CopyPersistedProperties();
     Config.ResetClaimTypesList();
 }
예제 #2
0
 public void Init()
 {
     Console.WriteLine($"Starting augmentation test {TestContext.CurrentContext.Test.Name}...");
     Config       = AzureCPConfig.GetConfiguration(UnitTestsHelper.ClaimsProviderConfigName, UnitTestsHelper.SPTrust.Name);
     BackupConfig = Config.CopyPersistedProperties();
     Config.EnableAugmentation = true;
     Config.Update();
 }
예제 #3
0
        public void Init()
        {
            AzureCPConfig configFromConfigDB = AzureCPConfig.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();
        }