Ejemplo n.º 1
0
        public void Generate(IData data, IFile file)
        {
            var barcode = BarcodeFactory.GetBarcode(data);

            var generator = new Genarator(barcode, file);

            generator.Generate();
        }
Ejemplo n.º 2
0
        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();
        }