Esempio n. 1
0
 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));
     }
 }
Esempio n. 2
0
        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));
            }
        }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
 public DtsNameObjectNodeFactory(IDTSName connectionInfo)
 {
     _connectionInfo = connectionInfo;
 }
Esempio n. 6
0
 public DtsNameObjectNodeFactory(IDTSName connectionInfo)
 {
     _connectionInfo = connectionInfo;
 }