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); }
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; }