コード例 #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
ファイル: Speaker.cs プロジェクト: ninjaferret/Paramore
 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;
 }
コード例 #3
0
 public Speaker(
     SpeakerBio bio,
     PhoneNumber phoneNumber,
     EmailAddress emailAddress,
     SpeakerName name)
     : this(new Id(), new Version(), bio, phoneNumber, emailAddress, name)
 {
 }
コード例 #4
0
 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;
 }