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 GetByName_Throws_When_Argument_null()
 {
     var repo = new XmlProjectInfoRepository("another_legit_path");
       Assert.Throws<ArgumentException>(() => repo.GetByName(null));
 }
 public void SetUp()
 {
     const string filename = "TestProjectInfo.xml";
       string path = Path.Combine("Core\\DataAccess\\Xml", filename);
       _projectInfoRepository = new XmlProjectInfoRepository(path);
 }