public void SetupMethods() { isIntegrationServiceStarted = CheckIfIntegrationServiceStarted(); if (!isIntegrationServiceStarted) { return; } //Build the fullpath for the file to read Directory.CreateDirectory("ETL"); var pkg = DiskOnFile.CreatePhysicalFile(@"Etl\Sample.dtsx", "NBi.Testing.Integration.Core.Etl.IntegrationService.Resources.Sample.dtsx"); try { //Move the Etl to SQL Server Integration Services Application app = new Application(); Package p = app.LoadPackage(pkg, null); // Save the package to the SQL Server msdb folder, which is // also the MSDB folder in the Integration Services service, or as a row in the //sysssispackages table. app.SaveToSqlServerAs(p, null, "nbi\\nbi-sample", ConnectionStringReader.GetIntegrationServerDatabase(), null, null); } catch (Exception ex) { isIntegrationServiceStarted = false; IgnoreMessage = string.Format("Test fixture 'EtlDtsWindowsRunnerTest' is skipped: {0}", ex.Message); } }