示例#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);
 }
示例#2
0
 public Speaker(
     SpeakerBio bio,
     PhoneNumber phoneNumber,
     EmailAddress emailAddress,
     SpeakerName name)
     : this(new Id(), new Version(), bio, phoneNumber, emailAddress, name)
 {
 }
示例#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;
 }
示例#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;
 }
示例#5
0
 protected bool Equals(SpeakerBio other)
 {
     return(string.Equals(bio, other.bio));
 }