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()); }
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(); }
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(); }