Esempio n. 1
0
        static void Main(string[] args)
        {
            IManager accountingVP = EmployeeProcessor.SetupManager();

            IManaged emp = EmployeeProcessor.SetUpManagedEmployee(accountingVP);

            EmployeeProcessor.DisplayEmployee(emp);

            Console.ReadLine();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Imię");
            string firstName = Console.ReadLine();

            Console.WriteLine("Nazwisko");
            string lastName = Console.ReadLine();

            EmployeeProcessor processor  = new EmployeeProcessor();
            string            employeeId = processor.GenereteEmployeeId(firstName, lastName);

            Console.WriteLine($"Twój id jest: {employeeId}");

            Console.ReadLine();
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Console.WriteLine("What is your first name: ");
            string firstName = Console.ReadLine();

            Console.WriteLine("What is your last name: ");
            string lastName = Console.ReadLine();

            EmployeeProcessor processor  = new EmployeeProcessor();
            string            employeeID = processor.GenerateEmployeeID(firstName, lastName);

            Console.WriteLine($"Your employee id is: {employeeID}");

            Console.ReadLine();
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            string firstName = string.Empty;
            string lastName  = string.Empty;

            Console.WriteLine("Input your first name:");
            firstName = Console.ReadLine();
            Console.WriteLine("Input your last name:");
            lastName = Console.ReadLine();

            EmployeeProcessor processor  = new EmployeeProcessor();
            string            employeeId = processor.GenerateEmployeeId(firstName, lastName);

            Console.WriteLine($"Your employee id is: { employeeId }");

            Console.ReadLine();
        }