Ejemplo n.º 1
0
        public void GetLdapUserManipulator()
        {
            var configRepo    = new LdapConfigRepository();
            var logger        = new FakeLogger();
            var ldapConnector = LdapConnectorFactory.GetLdapConnector(new LdapAdminModeChecker(configRepo), configRepo, logger);
            ILdapUserManipulator ldapUserManipulator = LdapUserManipulatorFactory.GetUserManipulator(ldapConnector,
                                                                                                     logger, configRepo);

            Assert.IsInstanceOfType(ldapUserManipulator, typeof(ILdapUserManipulator));
        }
Ejemplo n.º 2
0
 private void CommonInitOperations()
 {
     _connector      = LdapConnectorFactory.GetLdapConnector(_adminModeChecker, _configRepository, _logger);
     _manageLdapUser = LdapUserManipulatorFactory.GetUserManipulator(_connector, _logger, _configRepository);
     _searcher       = LdapSearcherFactory.GetSearcher(_connector, _logger, _configRepository);
 }