Example #1
0
        public void CheckDomainsTest()
        {
            string notAvailDomain = "microsoft.com";
            string availDomain    = "ahanarolen1504.com";

            DomainForCheck[] domains             = new DomainForCheck[] { new DomainForCheck(notAvailDomain), new DomainForCheck(availDomain) };
            CheckResponse.CheckedDomain[] result = target.CheckDomains(domains);
            Assert.AreEqual(2, result.Length);
            Assert.AreEqual(result[0].Name.ToLower(), notAvailDomain);
            Assert.IsFalse(result[0].Avail);
            Assert.AreEqual(result[1].Name.ToLower(), availDomain);
            Assert.IsTrue(result[1].Avail);
        }