Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 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();
        }