public Employee ( Name name, Department department, YearsOfExperience yearsOfExperience ) { this.Name = name.ThrowIfNull(); this.Department = department.ThrowIfNull(); this.YearsOfExperience = yearsOfExperience.ThrowIfNull(); }
public CompositeEmployee ( Name name, Department department, YearsOfExperience yearsOfExperience ) { this.Name = name; this.Department = department; this.YearsOfExperience = yearsOfExperience; this.subordinates = new List <IEmployee>(); }