public void Generate(IData data, IFile file) { var barcode = BarcodeFactory.GetBarcode(data); var generator = new Genarator(barcode, file); generator.Generate(); }
static void Main(string[] args) { Console.Write("How many strong usernames and passwords do you want to create? "); int amountOfUserPass = Convert.ToInt32(Console.ReadLine()); Genarator gen = new Genarator(); for (int i = 0; i < amountOfUserPass; i++) { string username = gen.RandomUsername(); string password = gen.RandomPassword(); Console.WriteLine($"Username: {username} Password: {password}"); } Console.ReadKey(); }