예제 #1
0
        public void DoAuthenticationTestWrongDomain()
        {
            LdapAuthenticator ldapAuth = new LdapAuthenticator();
            bool expected = ldapAuth.DoAuthentication("nddigital", "matheus.silva", "ndd@123");

            Assert.AreEqual(expected, false);
        }
예제 #2
0
        public void DoAuthenticationTestSimpleDomain()
        {
            LdapAuthenticator ldapAuth = new LdapAuthenticator();
            bool expected = ldapAuth.DoAuthentication("testes", "matheus.silva", "ndd@123");

            Assert.AreEqual(expected, true);
        }
예제 #3
0
        public void DoAuthenticationTesWrongPass()
        {
            LdapAuthenticator ldapAuth = new LdapAuthenticator();
            bool expected = ldapAuth.DoAuthentication("testes", "matheus.silva", "ndd");

            Assert.AreEqual(expected, false);
        }
예제 #4
0
        public void DoAuthenticationTest()
        {
            LdapAuthenticator ldapAuth = new LdapAuthenticator();
            bool expected = ldapAuth.DoAuthentication("testes.nddigital.local", "matheus.silva", "ndd@123");

            Assert.AreEqual(expected, true);
        }