Exemplo n.º 1
0
        public async Task GetIps(int asn)
        {
            var sut = new Helpers.Networking.Clients.Concrete.WhoIsClient();

            var addressPrefixes = await sut.GetIpsAsync(asn).ToListAsync();

            Assert.NotNull(addressPrefixes);
            Assert.NotEmpty(addressPrefixes);

            foreach (var(ip, maskLength) in addressPrefixes)
            {
                Assert.NotNull(ip);
                Assert.NotEmpty(ip !.ToString());
                Assert.InRange(maskLength, 0, 64);
            }
        }
Exemplo n.º 2
0
 public ClientFixture()
 {
     WhoIsClient = new Helpers.Networking.Clients.Concrete.WhoIsClient();
 }