Exemplo n.º 1
0
 public Physician(int identifier,
                  FullName fullName,
                  HealthcarePractitionerLicenseNumber licenseNumber,
                  SocialSecurityNumber socialSecurityNumber = null,
                  ContactInformation contactInformation     = null,
                  string speciality  = null,
                  string displayName = null)
     : base(identifier, fullName, licenseNumber, socialSecurityNumber, contactInformation, speciality, displayName)
 {
 }
Exemplo n.º 2
0
 protected HealthcarePractitioner(int identifier,
                                  FullName fullName,
                                  HealthcarePractitionerLicenseNumber licenseNumber,
                                  SocialSecurityNumber socialSecurityNumber = null,
                                  ContactInformation contactInformation     = null,
                                  string speciality  = null,
                                  string displayName = null)
 {
     Condition.Requires(identifier, nameof(identifier)).IsGreaterThan(0);
     Condition.Requires(fullName, nameof(fullName)).IsNotNull();
     Condition.Requires(licenseNumber, nameof(licenseNumber)).IsNotNull();
     this.Identifier           = identifier;
     this.FullName             = fullName;
     this.LicenseNumber        = licenseNumber;
     this.SocialSecurityNumber = socialSecurityNumber;
     this.ContactInformation   = contactInformation;
     if (!string.IsNullOrWhiteSpace(speciality))
     {
         this.Speciality = speciality;
     }
     this.DisplayName = string.IsNullOrWhiteSpace(displayName) ? fullName.AsFormattedName() : displayName;
 }