예제 #1
0
 public async Task TestWPGetListUpdate()
 {
     WPSite site = new WPSite("Максимум", "http://maximum-kirov.ru/");
     WPListUpdate wplu = new WPListUpdate(site,"wp_update.php");
     List<string> res = await wplu.GetPluginsWithUpdate();
     Assert.IsNotNull(res);
 }
        public WPListUpdate(WPSite site, string pathToScript)
        {
            if (!TestURL(site.SiteURi + pathToScript))
            {
                throw new ArgumentOutOfRangeException("pathToScript", "Указан неверный путь");
            }
            else
            {
                this.Site = site;
                this.PathToScripts = pathToScript;
            }

        }
 public WPListUpdate(WPSite site) : this(site, "/wp_update.php") { }