private void AddPackageRefs(SsisTestSuite ts, IDTSName package, string location) { if (!ts.PackageList.ContainsKey(package.Name)) { ts.PackageList.Add(package.Name, new PackageRef(package.Name, location, PackageStorageType.FileSystem)); } }
private void AddTests(SsisTestSuite ts, IDTSName package, IEnumerable <TaskItem> taskItemList) { foreach (TaskItem item in taskItemList) { int counter = 1; string testName = item.Name; while (ts.Tests.ContainsKey(testName)) { testName = item.Name + counter.ToString(CultureInfo.InvariantCulture); counter++; } ts.Tests.Add(testName, new Test(ts, testName, package.Name, null, item.ID)); } }
private static Assembly GetComponentAssembly(IDTSName name) { Assembly assembly = null; try { string assemblyName = name.ID.Remove(0, 1 + name.ID.IndexOf(',')).Trim(); // Check for GUID as string, and exit if (assemblyName.StartsWith("{")) { return null; } assembly = Assembly.Load(assemblyName); } catch { } return assembly; }
private static Assembly GetComponentAssembly(IDTSName name) { Assembly assembly = null; try { string assemblyName = name.ID.Remove(0, 1 + name.ID.IndexOf(',')).Trim(); // Check for GUID as string, and exit if (assemblyName.StartsWith("{")) { return(null); } assembly = Assembly.Load(assemblyName); } catch { } return(assembly); }
public DtsNameObjectNodeFactory(IDTSName connectionInfo) { _connectionInfo = connectionInfo; }