Пример #1
0
 public static VenueContact Parse(string venueContact)
 {
     var rx = new Regex("Name : (.*), EmailAddress : (.*): , PhoneNumber : (.*)");
     var match = rx.Match(venueContact);
     var contactName = new ContactName(match.Groups[0].ToString());
     var emailAddress = new EmailAddress(match.Groups[1].ToString());
     var phoneNumber = new PhoneNumber(match.Groups[2].ToString());
     return new VenueContact(contactName, emailAddress, phoneNumber);
 }
Пример #2
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;
 }
Пример #3
0
 public VenueContact(ContactName contactName, EmailAddress emailAddress, PhoneNumber phoneNumber)
 {
     this.contactName = contactName;
     this.emailAddress = emailAddress;
     this.phoneNumber = phoneNumber;
 }