public void IntegrationTestCreateAndRemove() { const string AppName = "MyCoreTestApplication"; BizTalkCatalogExplorer bizTalkCatalogExplorer = new BizTalkCatalogExplorer("server=.\\MSSqlSvr2008;database=BizTalkMgmtDb;integrated security=sspi;"); bizTalkCatalogExplorer.CreateApplication(AppName); bizTalkCatalogExplorer.RemoveApplication(AppName); }
/// <summary> /// Executes the task. /// </summary> /// <returns>Indicating if the task was successful.</returns> public override bool Execute() { BizTalkCatalogExplorer bizTalkCatalogExplorer = new BizTalkCatalogExplorer(ManagementDatabaseConnectionString); if (bizTalkCatalogExplorer.ApplicationExists(ApplicationName)) { Log.LogMessage("A BizTalk application with the name '{0}' already exists.", ApplicationName); return false; } Log.LogMessage("Creating a BizTalk application with the name '{0}'.", ApplicationName); bizTalkCatalogExplorer.CreateApplication(this.ApplicationName); return true; }