public StringPatternAnalyzerResult Run() { SpecialCharacter.ResetMiddleSpecialCharacterCount(); SequentialCharacter.ResetSequentialCharacterCount(); RepeatedCharacters repeatedCharacters = new RepeatedCharacters { Count = 0, Deduction = 0 }; for (int index = 0; index < password.Length; index++) { CheckCharacter(index); CheckRepeatedCharacters(index, ref repeatedCharacters); } sequentialLetters = CheckSequentialLetters(); sequentialNumbers = CheckSequentialNumbers(); sequentialSymbols = CheckSequentialSymbols(); int score = 0; ApplyPositiveMultipliers(ref score); ApplyNagativeMultipliers(ref score, repeatedCharacters); return(StringPatternAnalyzerResult.FromScore(score)); }
internal StringPatternAnalyzerResult Run() { SpecialCharacter.ResetMiddleSpecialCharacterCount(); SequentialCharacter.ResetSequentialCharacterCount(); RepeatedCharacters repeatedCharacters = new RepeatedCharacters { Count = 0, Deduction = 0 }; for (int index = 0; index < password.Length; index++) { CheckCharacter(index); CheckRepeatedCharacters(index, ref repeatedCharacters); } throw new NotImplementedException(); }