Пример #1
0
 public Employee Connect(Guid employeeGuid, EquipmentBundle bundle)
 {
     return(new Employee()
     {
         EmployeeId = employeeGuid,
         Bundle = bundle
     });
 }
        public EquipmentBundle CreateStandardBundle()
        {
            var monitor = new EquipmentItem {
                Name = "Monitor"
            };

            var keyboard = new EquipmentItem {
                Name = "keyboard"
            };

            // add to bundle
            var standardBundle = new EquipmentBundle();

            standardBundle.Add(monitor);
            standardBundle.Add(keyboard);

            return(standardBundle);
        }