Exemple #1
0
 private static IDictionary <string, IValueObject> MakeValueObjects(
     IEmployeeRoot root, IDepartment department, IUser user, INtId ntId)
 => new Dictionary <string, IValueObject>
 {
     { "Root", root },
     { "Department", department },
     { "User", user },
     { "NtId", ntId }
 };
Exemple #2
0
 public Employee(
     IComplexKey complexKey,
     IEmployeeRoot root,
     IDepartment department,
     IUser user,
     INtId ntId)
     : base(complexKey, MakeValueObjects(root, department, user, ntId))
 {
     _root       = root;
     _department = department;
     _user       = user;
     _ntId       = ntId;
 }