public void SetUp()
        {
            const string projectFilePath = @"Data\ProjectInfos.xml";
              const string environmentDirPath = @"Data";

              IProjectInfoRepository projectInfoRepository = new XmlProjectInfoRepository(projectFilePath);
              IMsSqlDatabasePublisher databasePublisher = new MsSqlDatabasePublisher(new CmdExecutor(), null);
              IEnvironmentInfoRepository environmentInfoRepository = new XmlEnvironmentInfoRepository(environmentDirPath);
              IFileAdapter fileAdapter = new FileAdapter();
              IArtifactsRepository artifactsRepository = new TeamCityArtifactsRepository(new TeamCityClient("teamcity", 90, "guest", "guest"));
              IDbManagerFactory dbManagerFactory = new MsSqlDbManagerFactory();
              IZipFileAdapter zipFileAdapter = new ZipFileAdapter();

              _publishDbProjectDeploymentTask = new PublishDbProjectDeploymentTask(
            projectInfoRepository,
            environmentInfoRepository,
            artifactsRepository,
            fileAdapter,
            zipFileAdapter,
            dbManagerFactory,
            databasePublisher);
        }
Exemplo n.º 2
0
        public void SetUp()
        {
            const string projectFilePath    = @"Data\ProjectInfos.xml";
            const string environmentDirPath = @"Data";

            IProjectInfoRepository     projectInfoRepository     = new XmlProjectInfoRepository(projectFilePath);
            IMsSqlDatabasePublisher    databasePublisher         = new MsSqlDatabasePublisher(new CmdExecutor(), null);
            IEnvironmentInfoRepository environmentInfoRepository = new XmlEnvironmentInfoRepository(environmentDirPath);
            IFileAdapter         fileAdapter         = new FileAdapter();
            IArtifactsRepository artifactsRepository = new TeamCityArtifactsRepository(new TeamCityClient("teamcity", 90, "guest", "guest"));
            IDbManagerFactory    dbManagerFactory    = new MsSqlDbManagerFactory();
            IZipFileAdapter      zipFileAdapter      = new ZipFileAdapter();

            _publishDbProjectDeploymentTask = new PublishDbProjectDeploymentTask(
                projectInfoRepository,
                environmentInfoRepository,
                artifactsRepository,
                fileAdapter,
                zipFileAdapter,
                dbManagerFactory,
                databasePublisher);
        }