auto address = new EmailAddress("test1@email.com"); assert(is(typeof(address) == EmailAddress)); assert(is(typeof(address.id) == UUID)); assert(is(typeof(address.emailHandle) == string)); assert(is(typeof(address.emailDomain) == string)); assert(is(typeof(address.emailAddress) == string)); assert(address.id == sha1UUID(address.emailHandle, sha1UUID(address.emailDomain))); assert(address.emailHandle == "test1"); assert(address.emailDomain == "email.com"); assert(address.emailAddress == "test1@email.com");
Email Address: class