public void TldsResponse() { var tlds = new PaginatedDnsimpleResponse <TldData>(_jToken).Data; Assert.Multiple(() => { Assert.AreEqual("ac", tlds.First().Tld); Assert.AreEqual(2, tlds.First().TldType); Assert.IsFalse(tlds.First().WhoisPrivacy); Assert.IsTrue(tlds.First().AutoRenewOnly); Assert.IsFalse(tlds.First().Idn); Assert.AreEqual(1, tlds.First().MinimumRegistration); Assert.IsTrue(tlds.First().RegistrationEnabled); Assert.IsTrue(tlds.First().RenewalEnabled); Assert.IsFalse(tlds.First().TransferEnabled); }); }
public void DelegationSignerRecordsData() { var records = new PaginatedDnsimpleResponse <DelegationSignerRecord>(_jToken).Data; Assert.Multiple(() => { Assert.AreEqual(1, records.Count); Assert.AreEqual(24, records.First().Id); Assert.AreEqual(1010, records.First().DomainId); Assert.AreEqual("8", records.First().Algorithm); Assert.AreEqual("C1F6E04A5A61FBF65BF9DC8294C363CF11C89E802D926BDAB79C55D27BEFA94F", records.First().Digest); Assert.AreEqual("2", records.First().DigestType); Assert.AreEqual("44620", records.First().Keytag); Assert.AreEqual(CreatedAt, records.First().CreatedAt); Assert.AreEqual(UpdatedAt, records.First().UpdatedAt); }); }
public void EmailForwardsData() { var emailForwards = new PaginatedDnsimpleResponse <EmailForward>(_jToken).Data; Assert.Multiple(() => { Assert.AreEqual(2, emailForwards.Count); Assert.AreEqual(17702, emailForwards.First().Id); Assert.AreEqual(228963, emailForwards.First().DomainId); Assert.AreEqual(".*@a-domain.com", emailForwards.First().From); Assert.AreEqual("*****@*****.**", emailForwards.First().To); Assert.AreEqual(CreatedAt, emailForwards.First().CreatedAt); Assert.AreEqual(UpdatedAt, emailForwards.First().UpdatedAt); }); }
public void CertificatesResponse() { var certificate = new PaginatedDnsimpleResponse <Certificate>(_jToken).Data; Assert.Multiple(() => { Assert.AreEqual(2, certificate.Count); Assert.AreEqual(1, certificate.First().Id); Assert.AreEqual(10, certificate.First().DomainId); Assert.AreEqual(3, certificate.First().ContactId); Assert.AreEqual("www", certificate.First().Name); Assert.AreEqual("www.weppos.net", certificate.First().CommonName); Assert.AreEqual(1, certificate.First().Years); Assert.AreEqual(CertificateContent, certificate.First().Csr); Assert.AreEqual("issued", certificate.First().State); Assert.IsFalse(certificate.First().AutoRenew); Assert.IsEmpty(certificate.First().AlternateNames); Assert.AreEqual("letsencrypt", certificate.First().AuthorityIdentifier); Assert.AreEqual(CreatedAt, certificate.First().CreatedAt); Assert.AreEqual(UpdatedAt, certificate.First().UpdatedAt); Assert.AreEqual(ExpiresOn, certificate.First().ExpiresOn); }); }
public void DomainsResponse() { var domains = new PaginatedDnsimpleResponse <Domain>(_jToken).Data; Assert.Multiple(() => { Assert.AreEqual(2, domains.Count); Assert.AreEqual(1, domains.First().Id); Assert.AreEqual(1010, domains.First().AccountId); Assert.IsNull(domains.First().RegistrantId); Assert.AreEqual("example-alpha.com", domains.First().Name); Assert.AreEqual("example-alpha.com", domains.First().UnicodeName); Assert.AreEqual("hosted", domains.First().State); Assert.IsFalse(domains.First().AutoRenew); Assert.IsFalse(domains.First().PrivateWhois); Assert.IsNull(domains.First().ExpiresOn); Assert.AreEqual(CreatedAt, domains.First().CreatedAt); Assert.AreEqual(UpdatedAt, domains.First().UpdatedAt); }); }