public void Should_not_ignore_new_pasword_contained_in_history_if_it_is_a_regular_user() { RegularUserPasswordRules regularUserPasswordRules = new RegularUserPasswordRules(); var regularUserPasswordHistory = new PasswordHistory("UserName1", new Password(CurrentPassword), _previousPasswords, regularUserPasswordRules); regularUserPasswordHistory.CreateNewPassword(new Password(_itContainsUsedPassword)) .Should().BeFalse(); }
public void Should_ignore_non_letter_characters_rule_if_it_is_a_regular_user() { RegularUserPasswordRules regularUserPasswordRules = new RegularUserPasswordRules(); var regularUserPasswordHistory = new PasswordHistory("UserName1", new Password(CurrentPassword), _previousPasswords, regularUserPasswordRules); regularUserPasswordHistory.CreateNewPassword(new Password(ItDoesNotAddNewNonLetterCharacterInLastTwoPasswords)) .Should().BeTrue(); }