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);
        }
 public void SetUp()
 {
     const string envConfigsDirPath = "Core\\DataAccess\\Xml";
       _sut = new XmlEnvironmentInfoRepository(envConfigsDirPath);
 }
 public void GetByName_Throws_When_Argument_null()
 {
     var repo = new XmlEnvironmentInfoRepository("another_legit_path");
       Assert.Throws<ArgumentException>(() => repo.GetByName(null));
 }