Informedica.GenForm.Settings.Environments.Environment.AddSetting C# (CSharp) Méthode

AddSetting() public méthode

public AddSetting ( string settingName, string provider ) : void
settingName string
provider string
Résultat void
        public void AddSetting(string settingName, string provider)
        {
            AddSetting(settingName, provider, string.Empty);
        }

Same methods

Environment::AddSetting ( string settingName, string provider, string connectionString ) : void

Usage Example

        public void UseEnvironmentSettingsToAdAnEnvironment()
        {
            var env = new Environment("Test", "Test");

            env.AddSetting("Test", "Test");

            _source   = new TestSource();
            _settings = new EnvironmentSettingsCollection(_source);
            var col = new EnvironmentCollection(_settings);

            Isolate.WhenCalled(() => _settings.Add(null)).IgnoreCall();
            col.Add(env);
            Isolate.Verify.WasCalledWithAnyArguments(() => _settings.Add(null));
        }
All Usage Examples Of Informedica.GenForm.Settings.Environments.Environment::AddSetting