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); }
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; }
public VenueContact(ContactName contactName, EmailAddress emailAddress, PhoneNumber phoneNumber) { this.contactName = contactName; this.emailAddress = emailAddress; this.phoneNumber = phoneNumber; }