public void GetSearcher() { var configRepo = new LdapConfigRepository(); var logger = new FakeLogger(); var ldapConnector = LdapConnectorFactory.GetLdapConnector(new LdapAdminModeChecker(configRepo), configRepo, logger); var ldapSearcher = LdapSearcherFactory.GetSearcher(ldapConnector, logger, configRepo); Assert.IsInstanceOfType(ldapSearcher, typeof(ILdapSearcher)); }
private void CommonInitOperations() { _connector = LdapConnectorFactory.GetLdapConnector(_adminModeChecker, _configRepository, _logger); _manageLdapUser = LdapUserManipulatorFactory.GetUserManipulator(_connector, _logger, _configRepository); _searcher = LdapSearcherFactory.GetSearcher(_connector, _logger, _configRepository); }