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(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; }
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 = (string)bio; Email = (string)emailAddress; Id = (Guid)id; PhoneNumber = (string)phoneNumber; Name = (string)name; Version = (int)version; }