public void PasswordLengthIsGreaterThanMinimumLength()
        {
            var sut = new PasswordMinimumLengthSpecification(4);
            bool result = sut.IsSatisfiedBy(new Password("fourty"));

            Assert.IsTrue(result);
            Assert.AreEqual(0, sut.ReasonsForDissatisfaction.Count());
        }
        public void PasswordLengthIsLessThanMinimumLength()
        {
            var sut = new PasswordMinimumLengthSpecification(4);
            bool result = sut.IsSatisfiedBy(new Password("two"));

            Assert.IsFalse(result);
            Assert.AreEqual(1, sut.ReasonsForDissatisfaction.Count());
            Assert.AreEqual(PasswordMinimumLengthSpecification.PasswordTooShort, sut.ReasonsForDissatisfaction.Single());
        }
 public void PasswordCannotBeNull()
 {
     var sut = new PasswordMinimumLengthSpecification(1);
     sut.IsSatisfiedBy(null);
 }