Exemplo n.º 1
0
 public void TestSearch()
 {
     using (var service = new LdapAuthentication.LdapAuthentication(options))
     {
         var result = service.Search("ou=DevPart,dc=devitd,dc=com");
         Assert.AreEqual(true, result.Count > 0);
     }
 }
Exemplo n.º 2
0
 public void TestValidatePassword()
 {
     using (var service = new LdapAuthentication.LdapAuthentication(options))
     {
         string user     = "******";
         string password = "******";
         var    result   = service.ValidatePassword(user, password);
         Assert.AreEqual(true, result);
     }
 }