Exemple #1
0
        public void NotAutenticateUserWithInvalidPassword()
        {
            RepositoryMembershipProvider provider = GetProvider();

            provider.ValidPassword   = "******";
            provider.EmployeeService = MakeInitializedEmployeeService();

            bool valid = provider.ValidateUser("user42", "AnotherPassword");

            Assert.IsFalse(valid);
        }
Exemple #2
0
        public void NotAutenticateInvalidUser()
        {
            RepositoryMembershipProvider provider = GetProvider();

            provider.ValidPassword   = "******";
            provider.EmployeeService = MakeInitializedEmployeeService();

            bool valid = provider.ValidateUser("fooUser2", "whoCares");

            Assert.IsFalse(valid);
        }
Exemple #3
0
        public void AutenticateUserWithOtherCaseWithValidPassword()
        {
            RepositoryMembershipProvider provider = GetProvider();

            provider.ValidPassword   = "******";
            provider.EmployeeService = MakeInitializedEmployeeService();

            bool valid = provider.ValidateUser("USER42", "MyPass");

            Assert.IsTrue(valid);
        }