예제 #1
0
        public async Task should_get_rdap_by_ip()
        {
            var rdap   = new Rdap(_client);
            var actual = await rdap.DoLookUp("1.1.1.1", AddressType.Ip);

            Assert.IsNotNull(actual.Data);
            Assert.AreEqual(ServiceStatus.Ok, actual.Status);
        }
예제 #2
0
        public async Task should_get_Rdap_info()
        {
            var rdap   = new Rdap(_client);
            var actual = await rdap.DoLookUp("calebukle.com", AddressType.DomainName);

            Assert.IsNotNull(actual.Data);
            Assert.AreEqual(ServiceStatus.Ok, actual.Status);
        }
예제 #3
0
        public async Task rdap_should_throw_bad_address_type()
        {
            var rdap = new Rdap(_client);

            Assert.Catch <AggregateException>(() => rdap.DoLookUp("calebukle.com", (AddressType)50).Wait());
        }