Пример #1
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);
        }
Пример #2
0
        public void SetUp()
        {
            const string envConfigsDirPath = "Core\\DataAccess\\Xml";

            _sut = new XmlEnvironmentInfoRepository(envConfigsDirPath);
        }