Esempio n. 1
0
        public async Task IPReportBatchLimit()
        {
            List <string> ips = new List <string>();

            for (int i = 1; i <= 5; i++)
            {
                ips.Add("8.8.8." + i);
            }

            //We can't do 5 requests pr. minute, so we expect this to throw an error.
            await Assert.ThrowsAsync <RateLimitException>(async() => await Task.WhenAll(VirusTotal.GetIPReports(ips)));
        }