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(); }
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(); }
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(); }