public static void DisableUser(this ICakeContext context, string propertyName, string propertyValue, UserSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (settings == null) { throw new ArgumentNullException(nameof(settings)); } var userDisable = new UserDisable(new ADOperator(settings.LoginName, settings.Password, settings.DomainName)); userDisable.DisableUser(propertyName, propertyValue); }
public void TestUserDisable() { UserDisable ud = new UserDisable(1, "*****@*****.**", true); ud.Execute(); }
public UserDisableFixture(IADOperator adOperator) { _userDisable = new UserDisable(adOperator); PropertyName = "proxyAddresses"; PropertyValue = "*****@*****.**"; }