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 DisableUser() { _userDisable.DisableUser(PropertyName, PropertyValue); }