Beispiel #1
0
 public override void Load(SpeakerDocument document)
 {
     bio          = new SpeakerBio(document.Bio);
     emailAddress = new EmailAddress(document.Email);
     name         = new SpeakerName(document.Name);
     phoneNumber  = new PhoneNumber(document.PhoneNumber);
 }
Beispiel #2
0
 public Speaker(
     SpeakerBio bio,
     PhoneNumber phoneNumber,
     EmailAddress emailAddress,
     SpeakerName name)
     : this(new Id(), new Version(), bio, phoneNumber, emailAddress, name)
 {
 }
Beispiel #3
0
 public SpeakerDocument(Id id, Version version, SpeakerBio bio, PhoneNumber phoneNumber, EmailAddress emailAddress, SpeakerName name)
 {
     Bio         = bio;
     Email       = emailAddress;
     Id          = id;
     PhoneNumber = phoneNumber;
     Name        = name;
     Version     = version;
 }
Beispiel #4
0
 public Speaker(
     Id id,
     Version version,
     SpeakerBio bio,
     PhoneNumber phoneNumber,
     EmailAddress emailAddress,
     SpeakerName name)
     : base(id, version)
 {
     this.bio          = bio;
     this.emailAddress = emailAddress;
     this.name         = name;
     this.phoneNumber  = phoneNumber;
 }