Ejemplo n.º 1
0
        private static void Main()
        {
            List <string> documents = new List <string>()
            {
                "test document 1",
                "test document 2",
                "test document 3",
                "test document 4",
            };

            Employee employee1 = new Employee("Pencho");
            Employee employee2 = new Employee("Pancho");
            Employee employee3 = new Employee("Pincho");
            Manager  manager1  = new Manager("Mincho", documents);
            Manager  manager2  = new Manager("Mancho", documents);
            Manager  manager3  = new Manager("Muncho", documents);

            List <IPrintable> employees = new List <IPrintable>()
            {
                employee1,
                employee2,
                employee3,
                manager1,
                manager2,
                manager3
            };

            DetailsPrinter printer = new DetailsPrinter(employees);

            printer.PrintDetails();
        }
Ejemplo n.º 2
0
        static void Main()
        {
            List <string> documents = new List <string>()
            {
                "test 1",
                "test 2",
                "test 3",
                "test 4",
            };

            Employee employee1 = new Employee("Kuncho");
            Employee employee2 = new Employee("Ivan");
            Employee employee3 = new Employee("Genadi");
            Manager  manager1  = new Manager("SurmataHari", documents);
            Manager  manager2  = new Manager("SurmataHari", documents);
            Manager  manager3  = new Manager("SurmataHari", documents);

            List <IPrintable> employees = new List <IPrintable>()
            {
                employee1,
                employee2,
                employee3,
                manager1,
                manager2,
                manager3
            };

            DetailsPrinter printer = new DetailsPrinter(employees);

            printer.PrintDetails();
        }
Ejemplo n.º 3
0
        static void Main()
        {
            var employee       = new Employee("Employee");
            var manager        = new Manager("Manager", new[] { "Doc 1", "Doc 2", "Doc 3" });
            var detailsPrinter = new DetailsPrinter(new List <Employee>(new[] { employee, manager }));

            Console.WriteLine(detailsPrinter.PrintDetails());
        }
Ejemplo n.º 4
0
        static void Main()
        {
            IList <IPrintable> employees = new List <IPrintable>();

            employees.Add(new Manager("Milena", new List <string> {
            }));
            employees.Add(new Employee("Ivan Ivanov"));
            DetailsPrinter printer = new DetailsPrinter(employees);

            printer.PrintDetails();
        }
        static void Main()
        {
            Employee someEmployee = new Employee("Biser");
            Manager  someManager  = new Manager("Pesho", new List <string> {
                "doc1", "doc2", "doc3"
            });
            DetailsPrinter printer = new DetailsPrinter(new List <Employee> {
                someEmployee, someManager
            });

            printer.PrintDetails();
        }
Ejemplo n.º 6
0
        static void Main()
        {
            IList <Employee> employees = new List <Employee>()
            {
                new Employee("Pesho"),
                new Employee("Gosho"),
                new Manager("Dani", new string[] { "Word", "Excel", "PowerPoint" }),
                new Manager("Yoana", new string[] { "Word", "Excel", "PowerPoint" }),
            };
            DetailsPrinter detailsPrinter = new DetailsPrinter(employees);

            detailsPrinter.PrintDetails();
        }
Ejemplo n.º 7
0
        static void Main()
        {
            var employees = new List <IEmployee>();

            employees.Add(new Employee("Tonko"));
            var managerDocuments = new List <string>();

            managerDocuments.Add("Salary");
            managerDocuments.Add("Projects");
            employees.Add(new Manager("Pesho", managerDocuments));
            var printer = new DetailsPrinter(employees);

            printer.PrintDetails();
        }
Ejemplo n.º 8
0
        static void Main()
        {
            Employee        employee  = new Employee("employeeName");
            List <string>   documents = new List <string>();
            Manager         manager   = new Manager("managerName", documents);
            List <Employee> employees = new List <Employee>();

            employees.Add(employee);
            employees.Add(manager);

            DetailsPrinter detailsPrinter = new DetailsPrinter(employees);

            detailsPrinter.PrintDetails();
        }
Ejemplo n.º 9
0
        static void Main()
        {
            List <Employee> employees = new List <Employee>()
            {
                new Manager("Bozhidar", new List <string>()
                {
                    "something"
                }),
                new Employee("Ivan")
            };
            DetailsPrinter dp = new DetailsPrinter(employees);

            dp.PrintDetails();
        }
Ejemplo n.º 10
0
        static void Main()
        {
            List <string>   documents = new List <string>();
            List <Employee> employees = new List <Employee>();
            Manager         manager   = new Manager("Plamen", documents);
            Employee        employee  = new Employee("Sasho");

            employees.Add(manager);
            employees.Add(employee);

            DetailsPrinter printer = new DetailsPrinter(employees);

            printer.PrintDetails();
        }
Ejemplo n.º 11
0
        static void Main()
        {
            List <IEmployee> employees = new List <IEmployee>();
            IEmployee        employee  = new Employee("Ivan");
            IEmployee        manager   = new Manager("boris", new List <string> {
                "kucheta", "kotki"
            });

            employees.Add(employee);
            employees.Add(manager);
            DetailsPrinter printer = new DetailsPrinter(employees);

            printer.PrintDetails();
        }
Ejemplo n.º 12
0
        static void Main()
        {
            Manager manager = new Manager("Petar", new List <string> {
                "side note"
            });
            Manager manager1 = new Manager("Kaloyan", new List <string> {
                "side note", "VAC Ban reports"
            });

            DetailsPrinter printer = new DetailsPrinter(new List <Employee> {
                manager, manager1
            });

            printer.PrintDetails();
        }
Ejemplo n.º 13
0
        static void Main()
        {
            List <IEmployee> employees = new List <IEmployee>();

            IEmployee employee = new Employee("Petar");
            IEmployee manager  =
                new Manager("Ivan", new string[] { "Document first", "Document second" });

            employees.Add(employee);
            employees.Add(manager);

            DetailsPrinter details = new DetailsPrinter(employees);

            details.PrintDetails();
        }
Ejemplo n.º 14
0
        static void Main()
        {
            List <string>    docs      = new List <string>();
            IEmployee        employee  = new Employee("PESHO");
            IEmployee        manager   = new Manager("gosho", docs);
            List <IEmployee> employees = new List <IEmployee>()
            {
                employee,
                manager
            };

            DetailsPrinter detailPrinter = new DetailsPrinter(employees);

            detailPrinter.PrintDetails();
        }
Ejemplo n.º 15
0
        static void Main()
        {
            List <IEmployee> employees = new List <IEmployee>();

            IEmployee employee = new Employee("Vanio");
            IEmployee manager  = new Manager("Gosho", new string[] { "Document Word", "Document Exel", "Document .txt" });
            IEmployee quixote  = new DonQuixote("Don Quixote");

            employees.Add(employee);
            employees.Add(manager);
            employees.Add(quixote);

            DetailsPrinter detailsPrinter = new DetailsPrinter(employees);

            detailsPrinter.PrintDetails();
        }
Ejemplo n.º 16
0
        static void Main()
        {
            Manager manager = new Manager("Manager risto", new List <string>()
            {
                "1dokument", "2dokument"
            });
            Employee employee = new Employee("Prosto employee");


            DetailsPrinter detailsPrinter = new DetailsPrinter(new List <IEmployee>()
            {
                manager, employee
            });

            detailsPrinter.PrintDetails();
        }
Ejemplo n.º 17
0
        public static void Main()
        {
            Employee employee = new Employee("Ilker");
            Manager  manager  = new Manager("Sasho", new List <string>()
            {
                "vs 2019", "vs 2017"
            });
            List <IEmployee> employees = new List <IEmployee>()
            {
                manager, employee
            };

            DetailsPrinter printer = new DetailsPrinter(employees);

            printer.PrintDetails();
        }
Ejemplo n.º 18
0
        public static void Main()
        {
            string name      = "Ivan";
            var    documents = new List <string>();

            documents.Add("edno");
            documents.Add("dve");

            var manager = new Manager(name, documents);
            //var employee = new Employee(name);

            var printer = new DetailsPrinter();

            printer.PrintDetails(manager);
            //printer.PrintDetails(employee);
        }
Ejemplo n.º 19
0
        public static void Main()
        {
            var employee = new Employee("Pesho");
            var manager  = new Manager("Gosho", new List <string>()
            {
                "document1", "document2", "document3"
            });
            var mechanic = new Mechanic("bai Stamat", new string[] { "kleshti", "otverka", "chuk" });

            var printer = new DetailsPrinter(new List <IEmployee>()
            {
                employee, manager, mechanic
            });

            printer.PrintDetails();
        }
Ejemplo n.º 20
0
        static void Main()
        {
            List <string> documents = new List <string>()
            {
                "SoftUni MASTER", "SOLID is great", "Dido is a C# Monster"
            };
            IPrintable dido      = new Manager("Dido", documents);
            IPrintable pesho     = new Employee("Pesho");
            var        employees = new List <IPrintable>();

            employees.Add(dido);
            employees.Add(pesho);
            var printer = new DetailsPrinter(employees);

            printer.PrintDetails();
        }
Ejemplo n.º 21
0
        static void Main()
        {
            List <IEmployee> employees = new List <IEmployee>();

            IEmployee employee = new Employee("Viktor");

            IEmployee manager = new Manager("Dakov", new string[] { "Boza 1", "Boza 2" });

            employees.Add(employee);

            employees.Add(manager);

            DetailsPrinter detailsPrinter = new DetailsPrinter(employees);

            detailsPrinter.PrintDetails();
        }
Ejemplo n.º 22
0
        static void Main()
        {
            Manager manager = new Manager("Atanas", new List <string>()
            {
                "book", "note"
            });
            Employee employee = new Employee("Pesho");

            List <Employee> employees = new List <Employee>();

            employees.Add(manager);
            employees.Add(employee);

            DetailsPrinter detailsPrinter = new DetailsPrinter(employees);

            detailsPrinter.PrintDetails();
        }
Ejemplo n.º 23
0
        public static void Main()
        {
            var documents = new string[]
            {
                "Doc1", "Doc2", "Doc3"
            };

            var employees = new List <Employee>()
            {
                new Manager("Gosho", documents),
                new Employee("Maria")
            };

            var printer = new DetailsPrinter(employees);

            printer.PrintDetails();
        }
Ejemplo n.º 24
0
        static void Main()
        {
            Employee employeeOne = new Employee("Ivan");
            Employee employeeTwo = new Employee("Petkan");
            var      documents   = new List <string>()
            {
                "ff", "AFASF"
            };
            Manager         manager   = new Manager("Shefa", documents);
            List <Employee> employees = new List <Employee>()
            {
                employeeOne, employeeTwo, manager
            };
            DetailsPrinter printer = new DetailsPrinter(employees);

            printer.PrintDetails();
        }
Ejemplo n.º 25
0
        static void Main()
        {
            Employee      employee  = new Employee("Pesho");
            List <string> documents = new List <string>();

            documents.Add("Document 1");
            documents.Add("Document 2");
            documents.Add("Document 3");
            Employee        manager   = new Manager("Gosho", documents);
            List <Employee> employees = new List <Employee>();

            employees.Add(employee);
            employees.Add(manager);
            DetailsPrinter detailsPrinter = new DetailsPrinter(employees);

            detailsPrinter.PrintDetails();
        }
Ejemplo n.º 26
0
        static void Main()
        {
            List <IEmployee> employees = new List <IEmployee>();
            List <string>    documents = new List <string>()
            {
                "Doc1", "Appraisals", "MoneyScams"
            };

            employees.Add(new Manager("Mike", documents));
            employees.Add(new Employee("Rigdorajron"));
            employees.Add(new Employee("Emfilikinistibolmitoh"));
            employees.Add(new Employee("Gniorvelidana"));
            employees.Add(new Cleaner("Penka", 6));
            DetailsPrinter printer = new DetailsPrinter(employees);

            printer.PrintDetails();
        }
Ejemplo n.º 27
0
        static void Main()
        {
            Employee employee = new Employee("Angel");
            Manager  manager  = new Manager("Dany", new List <string>()
            {
                "File", "Data", "Web"
            });



            DetailsPrinter detailsPrinter = new DetailsPrinter(new List <IPersons>()
            {
                employee, manager
            });

            detailsPrinter.PrintDetails();
        }
        static void Main()
        {
            IList <Employee> employees = new List <Employee>();

            employees.Add(new Employee("Goshaka"));
            employees.Add(new Manager("Na Goshaka Shefa", new Collection <string> {
                "doc1", "doc2", "doc3", "topSecretDocNotVisibleToAnyone"
            }));
            employees.Add(new Employee("Na Goshaka kolegata"));
            employees.Add(new Manager("Mnogo vojd malko indianec", new Collection <string> {
                "doc4", "doc5", "doc6"
            }));

            DetailsPrinter dp = new DetailsPrinter(employees);

            dp.PrintDetails();
        }
Ejemplo n.º 29
0
        public static void Main()
        {
            var employees = new List <Employee>();

            var employee  = new Employee("Stephan");
            var documents = new List <string>()
            {
                "Id", "License", "CV"
            };
            var manager = new Manager("Jikata", documents);

            employees.Add(employee);
            employees.Add(manager);

            var detailsPrinter = new DetailsPrinter(employees);

            detailsPrinter.PrintDetails();
        }
Ejemplo n.º 30
0
        static void Main()
        {
            Employee      e1   = new Employee("Pesho");
            Employee      e2   = new Employee("Gosho");
            Employee      e3   = new Employee("Sharo");
            List <string> docs = new List <string> {
                "Personal", "Salaries"
            };
            Manager m = new Manager("Boss", docs);

            List <Employee> department = new List <Employee> {
                e1, e2, e3, m
            };

            DetailsPrinter pr = new DetailsPrinter(department);

            pr.PrintDetails();
        }