Пример #1
0
 public Employee
 (
     Name name,
     Department department,
     YearsOfExperience yearsOfExperience
 )
 {
     this.Name              = name.ThrowIfNull();
     this.Department        = department.ThrowIfNull();
     this.YearsOfExperience = yearsOfExperience.ThrowIfNull();
 }
Пример #2
0
 public CompositeEmployee
 (
     Name name,
     Department department,
     YearsOfExperience yearsOfExperience
 )
 {
     this.Name              = name;
     this.Department        = department;
     this.YearsOfExperience = yearsOfExperience;
     this.subordinates      = new List <IEmployee>();
 }