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