Esempio n. 1
0
        public void ValidateIncorrectPassword()
        {
            var author = new Author("joe", "test1234");
            var passwordHash = author.PasswordHash;

            Assert.IsFalse(author.ValidatePassword("test4567"), "Author.ValidatePassword() does not fail an incorrect password");
        }
Esempio n. 2
0
        public void ValidateCorrectPassword()
        {
            var author = new Author("joe", "test1234");
            var passwordHash = author.PasswordHash;

            Assert.IsTrue(author.ValidatePassword("test1234"), "Author.ValidatePassword() does not pass a correct password.");
        }