public void GetLdapConnector()
        {
            var configRepo = new LdapConfigRepository();
            ILdapConnector connector = LdapConnectorFactory.GetLdapConnector(new LdapAdminModeChecker(configRepo), configRepo,
                new FakeLogger());

            Assert.IsInstanceOfType(connector, typeof (ALdapConnector));
        }
        public void GetLdapUserManipulator()
        {
            var configRepo = new LdapConfigRepository();
            var logger = new FakeLogger();
            var ldapConnector = new LdapConnector(new LdapAdminModeChecker(configRepo), configRepo, logger);
            ILdapUserManipulator ldapUserManipulator = LdapUserManipulatorFactory.GetUserManipulator(ldapConnector,
                logger, configRepo);

            Assert.IsInstanceOfType(ldapUserManipulator, typeof (LdapUserManipulator));
        }
        public void GetLdapConnection()
        {
            var ldapConfigRepository = new LdapConfigRepository();
            ldapConfigRepository.BasicLdapConfig(null,LDAPAdminMode.Anonymous, "127.0.0.1:636","test",AuthType.Basic,LoggerType.None,"");
            ldapConfigRepository.AdditionalLdapConfig(secureSocketLayer, transportSocketLayer, clientCertificate, @"LDAPCert/Terena-chain.pem", "test", "test");
            var ldapConnection = LdapConnectionFactory.GetLdapConnection(ldapConfigRepository);

            Assert.IsInstanceOfType(ldapConnection, typeof(LdapConnection));         
            Assert.IsTrue(ldapConnection.ClientCertificates.Count == 1);
        }