Example #1
0
        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);
        }
Example #2
0
 public void DisableUser()
 {
     _userDisable.DisableUser(PropertyName, PropertyValue);
 }