public void DoAuthenticationTestWrongDomain() { LdapAuthenticator ldapAuth = new LdapAuthenticator(); bool expected = ldapAuth.DoAuthentication("nddigital", "matheus.silva", "ndd@123"); Assert.AreEqual(expected, false); }
public void DoAuthenticationTestSimpleDomain() { LdapAuthenticator ldapAuth = new LdapAuthenticator(); bool expected = ldapAuth.DoAuthentication("testes", "matheus.silva", "ndd@123"); Assert.AreEqual(expected, true); }
public void DoAuthenticationTesWrongPass() { LdapAuthenticator ldapAuth = new LdapAuthenticator(); bool expected = ldapAuth.DoAuthentication("testes", "matheus.silva", "ndd"); Assert.AreEqual(expected, false); }
public void DoAuthenticationTest() { LdapAuthenticator ldapAuth = new LdapAuthenticator(); bool expected = ldapAuth.DoAuthentication("testes.nddigital.local", "matheus.silva", "ndd@123"); Assert.AreEqual(expected, true); }