/// <summary> /// Constructor with a <see cref="IIANA_TLD"/> to get the statistic for /// and a container. /// </summary> /// <param name="tLD"> /// The <see cref="IIANA_TLD"/> to get the statistic for. /// </param> /// <param name="container">The container.∫</param> public DownloadStatistic(IIANA_TLD tLD, IContainer container) : base() { iANA_TLD = tLD; if (container != null) { container.Add(this, $"Statistic {LastHeadLine.Version}"); } }
static void check(string tld, IIANA_TLD iANA_TLD) { if (iANA_TLD.CheckTLD(tld)) { Console.WriteLine($"'{tld}' exists."); } else { Console.WriteLine($"'{tld}' doesn't exists."); } }
public void Setup() { tlds = new IANA_TLD(); tldList = new List <string>(); tldList.Add("de"); tldList.Add("gov"); tldList.Add("bullshit"); tldList.Add("ru"); tldList.Add("at"); tldList.Add("au"); }
/// <summary> /// Constructor with a <see cref="IIANA_TLD"/> to get the statistic for. /// </summary> /// <param name="tLD"> /// The <see cref="IIANA_TLD"/> to get the statistic for. /// </param> public DownloadStatistic(IIANA_TLD tLD) : base() { iANA_TLD = tLD; }