protected virtual CreateVersionCommand CreateNewCreateVersionCommand( string buildDefinitionName = null, string connectionString = null, string projectName = null, string projectConfigName = null, string requestedBy = null, string teamProjectName = null ) { if (string.IsNullOrWhiteSpace(buildDefinitionName)) buildDefinitionName = TestBuildDefinitionName; if (string.IsNullOrWhiteSpace(connectionString)) connectionString = GetConfiguredConnectionString(); if (string.IsNullOrWhiteSpace(projectName)) projectName = TestProjectName; if (string.IsNullOrWhiteSpace(projectConfigName)) projectConfigName = TestProjectConfigName; if (string.IsNullOrWhiteSpace(requestedBy)) requestedBy = TestRequestedBy; if (string.IsNullOrWhiteSpace(teamProjectName)) teamProjectName = TestTeamProjectName; var log = new NullCommandLog(); var command = new CreateVersionCommand { BuildDefinitionName = buildDefinitionName, ConnectionString = connectionString, CommandLog = log, ProjectName = projectName, ProjectConfigName = projectConfigName, RequestedBy = requestedBy, TeamProjectName = teamProjectName }; return command; }
protected virtual CreateVersionCommand CreateNewCreateVersionCommand( string buildDefinitionName = null, string connectionString = null, string projectName = null, string projectConfigName = null, string requestedBy = null, string teamProjectName = null ) { if (string.IsNullOrWhiteSpace(buildDefinitionName)) buildDefinitionName = TestBuildDefinitionName; if (string.IsNullOrWhiteSpace(connectionString)) connectionString = GetConfiguredConnectionString(); if (string.IsNullOrWhiteSpace(projectName)) projectName = TestProjectName; if (string.IsNullOrWhiteSpace(projectConfigName)) projectConfigName = TestProjectConfigName; if (string.IsNullOrWhiteSpace(requestedBy)) requestedBy = TestRequestedBy; if (string.IsNullOrWhiteSpace(teamProjectName)) teamProjectName = TestTeamProjectName; var log = new NullCommandLog(); var command = new CreateVersionCommand { BuildDefinitionName = buildDefinitionName, ConnectionString = connectionString, CommandLog = log, ProjectName = projectName, ProjectConfigName = projectConfigName, RequestedBy = requestedBy, TeamProjectName = teamProjectName }; return command; }