Exemple #1
0
        public async Task DomainReportBatchLimit()
        {
            List <string> domains = new List <string>();

            for (int i = 1; i <= 5; i++)
            {
                domains.Add("google" + i + ".com");
            }

            //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.GetDomainReports(domains)));
        }
Exemple #2
0
        public async Task DomainReportBatchLimit()
        {
            IgnoreMissingJson(" / Alexa category", " / Alexa domain info", " / Alexa rank", " / BitDefender category", " / BitDefender domain info", " / detected_communicating_samples", " / detected_downloaded_samples", " / detected_referrer_samples", " / Dr.Web category", " / Opera domain info", " / Pcaps", " / subdomains", " / TrendMicro category", " / undetected_communicating_samples", " / undetected_downloaded_samples", " / undetected_referrer_samples", " / WOT domain info", "detected_referrer_samples[array] / Date", "resolutions[array] / Hostname", "undetected_referrer_samples[array] / Date");

            List <string> domains = new List <string>();

            for (int i = 1; i <= 5; i++)
            {
                domains.Add("google" + i + ".com");
            }

            //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.GetDomainReports(domains)));
        }