public static PasswordFinderFactory GetFactory() { var factory = new PasswordFinderFactory(); factory.SetPassword("User1", $"{(char)109}{(char)121}{(char)115}{(char)101}{(char)99}{(char)114}{(char)101}{(char)116}{(char)112}{(char)97}{(char)115}{(char)115}{(char)119}{(char)111}{(char)114}{(char)100}"); factory.SetPassword("User2", $"{(char)111}{(char)116}{(char)104}{(char)101}{(char)114}{(char)112}{(char)97}{(char)115}{(char)115}{(char)119}{(char)111}{(char)114}{(char)100}"); return(factory); }
public PasswordChecker(PasswordFinderFactory passwordFinderFactory) { this.passwordFinder = passwordFinderFactory.GetNewPasswordFinder(); }