public void TestConstructors() { Context.Validate(); var smoConf = new SmoConfiguration(Context.Connection.Configuration); Assert.IsNotNull(smoConf); }
protected override void ProcessRecord() { foreach (KeyValuePair <string, object> entry in this.MyInvocation.BoundParameters.Where(x => !SkipThese.Contains(x.Key))) { SmoConfiguration.SetPropertyValue(SmoContext.Connection.Configuration, entry.Key, entry.Value); } try { SmoContext.Connection.Configuration.Alter(); } catch (Exception e) { base.ThrowInnerException(e); } }