Пример #1
0
 public Clinic(ClinicId clinicId,
               string name,
               string location)
 {
     Id        = clinicId;
     _name     = name;
     _location = location;
 }
Пример #2
0
 public Clinic(string name,
               string location)
 {
     Id        = new ClinicId(Guid.NewGuid());
     _name     = name;
     _location = location;
     AddDomainEvent(new ClinicCreatedDomainEvent(Id));
 }