Exemplo n.º 1
0
        public bool TestSearchUser()
        {
            if (!TestAdminConnect())
            {
                return(false);
            }

            IList <ILdapUser> returnUsers;

            bool result = _ldapManagerObj.SearchUsers(null, _userRepository.GetUserToSearch(), out returnUsers);

            if (result &&
                returnUsers.Count.Equals(_userRepository.GetUserToSearch().Length))
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 2
0
        public void SetConfiguraionTextBox(TextBox textBox)
        {
            textBox.Multiline  = true;
            textBox.Height     = 60;
            textBox.ScrollBars = ScrollBars.Both;
            string users = _userRepository.GetUserToSearch()
                           .Aggregate <string, string>(null, (current, user) => current + (user + Environment.NewLine));

            textBox.Text = users;
        }