コード例 #1
0
 public void Setup()
 {
     websiteTester = new TestWebsiteTester(new HashSet <string>());
     ipMonitor     = new IPMonitor(websiteTester);
     ipMonitor.UpdateWebsitesAction += (websites) => { };
     ipMonitor.UpdateIPFieldAction  += (temp) => { };
 }
コード例 #2
0
        public void Setup()
        {
            HashSet <string> websites      = new HashSet <string>();
            WebsiteTester    websiteTester = new WebsiteTester(websites);

            ipMonitor = new IPMonitor(websiteTester);
            ipMonitor.UpdateWebsitesAction += (websites) => { };
            string temp;

            ipMonitor.UpdateIPFieldAction += (temp) => { };
        }
コード例 #3
0
        public void Setup()
        {
            websiteTester = new WebsiteTester(new HashSet <string>());
            ipMonitor     = new IPMonitor(websiteTester);
            ipMonitor.UpdateWebsitesAction += (websites) => { };
            string temp;

            ipMonitor.UpdateIPFieldAction += (temp) => { };
            ipMonitor.SetWebsites(new HashSet <string>());
            vpnMonitor = new VPN_Stability_Monitor(ipMonitor);
            mi         = new MonitorInformation("47.144.17.23", "192.168.0.112", "192.168.0.812");
            vpnMonitor.UpdateStabilityAction += (websites) => { };
            vpnMonitor.active = true;
        }