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