private static void Main() { var generator = new PassGenerator(); var validator = new PassValidator(generator); Console.WriteLine("{0}", "Login:"******"{0} {1}", "Your password is:", generator.Generate(login)); Console.WriteLine("{0}", "Login:"******"{0} {1}", "Your password is:", generator.Generate(newLogin)); Console.WriteLine("{0}", "Login:"******"{0}", "Password:"******"{0}", "Valid password!"); Console.ReadLine(); } else { Console.WriteLine("{0}", "Invalid password!"); Console.ReadLine(); } }