Пример #1
0
        public void DownloadAndInstall()
        {
            const string url =
                "https://github.com/RickStrahl/SaveToAzureBlob-MarkdownMonster-Addin/raw/master/Build/SaveImageToAzureBlob-MarkdownMonster-Addin.zip";

            var  manager = new AddinManager();
            bool result  = manager.DownloadAndInstallAddin(url, "c:\\program files\\Markdown Monster\\Addins\\Install\\");

            Assert.IsTrue(result);
        }
        public void DownloadAndInstall()
        {
            const string url =
                "https://github.com/RickStrahl/SaveToAzureBlob-MarkdownMonster-Addin/raw/master/Build/SaveImageToAzureBlob-MarkdownMonster-Addin.zip";

            var addin = new AddinItem
            {
                id = "SaveImageToAzureBlob"
            };

            var manager = new AddinManager();
            var result  = manager.DownloadAndInstallAddin(url, "c:\\program files (x86)\\Markdown Monster\\Addins", addin);

            Assert.IsTrue(!result.IsError);
        }