public DeployDependenciesTask(
      string projectName,
      string targetEnvironment,
      Guid deploymentId,
      IProjectInfoRepository projectInfoRepository,
      IObjectFactory objectFactory,
      ITeamCityRestClient temCityRestClient,
      IDependentProjectsToDeployWebSelector dependentProjectsToDeploySelector)
        {
            Guard.NotNullNorEmpty(projectName, "projectName");
              Guard.NotNullNorEmpty(targetEnvironment, "targetEnvironment");
              Guard.NotEmpty(deploymentId, "deploymentId");
              Guard.NotNull(projectInfoRepository, "projectInfoRepository");
              Guard.NotNull(objectFactory, "objectFactory");
              Guard.NotNull(temCityRestClient, "temCityRestClient");
              Guard.NotNull(dependentProjectsToDeploySelector, "dependentProjectsToDeploySelector");

              _projectName = projectName;
              _targetEnvironment = targetEnvironment;
              _deploymentId = deploymentId;
              _projectInfoRepository = projectInfoRepository;
              _objectFactory = objectFactory;
              _temCityRestClient = temCityRestClient;
              _dependentProjectsToDeploySelector = dependentProjectsToDeploySelector;

              _subTasks = new List<DeploymentTaskBase>();
        }
Exemplo n.º 2
0
        public DeployDependenciesTask(
            string projectName,
            string targetEnvironment,
            Guid deploymentId,
            IProjectInfoRepository projectInfoRepository,
            IObjectFactory objectFactory,
            ITeamCityRestClient temCityRestClient,
            IDependentProjectsToDeployWebSelector dependentProjectsToDeploySelector)
        {
            Guard.NotNullNorEmpty(projectName, "projectName");
            Guard.NotNullNorEmpty(targetEnvironment, "targetEnvironment");
            Guard.NotEmpty(deploymentId, "deploymentId");
            Guard.NotNull(projectInfoRepository, "projectInfoRepository");
            Guard.NotNull(objectFactory, "objectFactory");
            Guard.NotNull(temCityRestClient, "temCityRestClient");
            Guard.NotNull(dependentProjectsToDeploySelector, "dependentProjectsToDeploySelector");

            _projectName                       = projectName;
            _targetEnvironment                 = targetEnvironment;
            _deploymentId                      = deploymentId;
            _projectInfoRepository             = projectInfoRepository;
            _objectFactory                     = objectFactory;
            _temCityRestClient                 = temCityRestClient;
            _dependentProjectsToDeploySelector = dependentProjectsToDeploySelector;

            _subTasks = new List <DeploymentTaskBase>();
        }