Exemplo n.º 1
0
 public Clinic(ClinicId clinicId,
               string name,
               string location)
 {
     Id        = clinicId;
     _name     = name;
     _location = location;
 }
Exemplo n.º 2
0
 public Clinic(string name,
               string location)
 {
     Id        = new ClinicId(Guid.NewGuid());
     _name     = name;
     _location = location;
     AddDomainEvent(new ClinicCreatedDomainEvent(Id));
 }