コード例 #1
0
 public void CreateNewManagerShouldWork()
 {
     var boss = new Manager("Steeve Jobs");
     string[] arr = new string[3]; // New array with 3 elements.
     arr[0] = "top";
     arr[1] = "middle";
     arr[2] = "bottom";
     boss.Documents = new List<string>(arr);
     boss.ToString();
 }
コード例 #2
0
        public void CreateEmployeesDetails()
        {
            var boss = new Manager("Steeve");
            var boss2 = new Manager("Maria");
            var driver = new Employee("Stamat");

            var employees = new List<Employee>();
            employees.Add(boss);
            employees.Add(boss2);
            employees.Add(driver);

            var pr = new DetailsPrinter(employees);
            pr.Print();
        }