Ejemplo n.º 1
0
        public 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.º 2
0
        public static void Main()
        {
            Employee       employee       = new Employee("Employee");
            Manager        manager        = new Manager("Manager", new string[] { "Doc 1", "Doc 2", "Doc 3" });
            DetailsPrinter detailsPrinter = new DetailsPrinter(new List <Employee>(new Employee[] { employee, manager }));

            detailsPrinter.PrintDetails();
        }
Ejemplo n.º 3
0
        public static void Main()
        {
            IList <IEmployee> emplyees = new List <IEmployee>()
            {
                new Employee("Ivan"),
                new Manager("Pesho", new List <string>()
                {
                    "Document 1",
                    "Document 2"
                })
            };

            DetailsPrinter printer = new DetailsPrinter(emplyees);

            printer.PrintDetails();
        }