Beispiel #1
0
        public void Get_WindowsAuthenticationPackage_ReturnsEtlFileRunner()
        {
            var etl = Mock.Of<IEtl>(e => e.Path == "/Etl/" && e.Name == "mySample.dtsx" && e.Server == ".");

            var factory = new SsisEtlRunnerFactory();

            Assert.IsInstanceOf<EtlDtsWindowsRunner>(factory.Get(etl));
        }
Beispiel #2
0
        public void Get_SqlServerAuthenticationPackage_ReturnsEtlFileRunner()
        {
            var etl = Mock.Of<IEtl>(e => e.Path == "/Etl/" && e.Name == "mySample.dtsx" && e.Server=="." && e.UserName=="sa" && e.Password=="p@ssw0rd");

            var factory = new SsisEtlRunnerFactory();

            Assert.IsInstanceOf<EtlDtsSqlServerRunner>(factory.Get(etl));
        }
Beispiel #3
0
        public void Get_CatalogPackage_ReturnsEtlCatalogRunner()
        {
            var etl = Mock.Of<IEtl>(e => e.Catalog == "Etl" && e.Folder == "folder" && e.Project == "project" && e.Name == "mySample" && e.Server == ".");

            var factory = new SsisEtlRunnerFactory();

            Assert.IsInstanceOf<EtlCatalogRunner>(factory.Get(etl));
        }
Beispiel #4
0
        public void Get_FilePackage_ReturnsEtlFileRunner()
        {
            var etl = Mock.Of<IEtl>(e => e.Path=="\\Etl\\" && e.Path=="mySample.dtsx");

            var factory = new SsisEtlRunnerFactory();

            Assert.IsInstanceOf<EtlFileRunner>(factory.Get(etl));
        }
Beispiel #5
0
 public IEtlRunner Get(IEtl etl)
 {
     var factory = new SsisEtlRunnerFactory();
     var runner = factory.Get(etl);
     return runner;
 }