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