예제 #1
0
 public static AddressData ToAddressData(this IMailAddress mailaddress)
 {
     return(new AddressData
     {
         Id = mailaddress.Id,
         DomainId = mailaddress.Domain.Id,
         Email = mailaddress.ToString()
     });
 }
예제 #2
0
 public virtual void CorrectToStringWorks()
 {
     Assert.AreEqual(peter_address.LocalPart + '@' + peter_address.Domain.Name, peter_address.ToString());
 }