示例#1
0
        public void AutheticateUser_CorrectUserIncorrectPassword_ReturnsSuccess()
        {
            using (ShimsContext.Create())
            {
                // Act
                AuthenticationResult actualResult = LdapSsoDal.AutheticateUser(TEST_USERNAME, TEST_PASSWORD);

                // Assert
                actualResult.ShouldBe(AuthenticationResult.SUCCESS);
            }
        }
示例#2
0
        public void AutheticateUser_CorrectUserRenewLease_ReturnsSuccess()
        {
            using (ShimsContext.Create())
            {
                // Act
                AuthenticationResult actualResult = LdapSsoDal.AutheticateUser(TEST_USERNAME, string.Empty);

                // Assert
                actualResult.ShouldBe(AuthenticationResult.SUCCESS);
            }
        }