Esempio n. 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);
        }
Esempio n. 2
0
        public void TestUserDisable()
        {
            UserDisable ud = new UserDisable(1, "*****@*****.**", true);

            ud.Execute();
        }
Esempio n. 3
0
 public UserDisableFixture(IADOperator adOperator)
 {
     _userDisable  = new UserDisable(adOperator);
     PropertyName  = "proxyAddresses";
     PropertyValue = "*****@*****.**";
 }