public DeploymentExecutor(ILog log, IHelpWriter helpWriter, IVersionWriter versionWriter, IExecCommand execCommand) { _log = log; _helpWriter = helpWriter; _versionWriter = versionWriter; _execCommand = execCommand; }
public VersionWriterTests() { var sp = ConfigureServices(services => { services.AddModule(new GitVersionExeModule()); }); versionWriter = sp.GetService <IVersionWriter>(); }
public GitVersionApplication(IFileSystem fileSystem, IEnvironment environment, ILog log, IConfigFileLocator configFileLocator) { this.fileSystem = fileSystem; this.environment = environment; this.log = log; this.configFileLocator = configFileLocator; versionWriter = new VersionWriter(); helpWriter = new HelpWriter(versionWriter); }
public GitVersionExecutor(ILog log, IConfigFileLocator configFileLocator, IVersionWriter versionWriter, IHelpWriter helpWriter, IExecCommand execCommand, IConfigProvider configProvider, IBuildServerResolver buildServerResolver, IGitPreparer gitPreparer) { this.log = log ?? throw new ArgumentNullException(nameof(log)); this.configFileLocator = configFileLocator ?? throw new ArgumentNullException(nameof(configFileLocator)); this.versionWriter = versionWriter ?? throw new ArgumentNullException(nameof(versionWriter)); this.helpWriter = helpWriter ?? throw new ArgumentNullException(nameof(helpWriter)); this.execCommand = execCommand ?? throw new ArgumentNullException(nameof(execCommand)); this.configProvider = configProvider ?? throw new ArgumentNullException(nameof(configFileLocator)); this.buildServerResolver = buildServerResolver ?? throw new ArgumentNullException(nameof(buildServerResolver)); this.gitPreparer = gitPreparer; }
public GitVersionExecutor(ILog log, IConsole console, IConfigFileLocator configFileLocator, IConfigProvider configProvider, IGitVersionTool gitVersionTool, IVersionWriter versionWriter, IHelpWriter helpWriter) { this.log = log ?? throw new ArgumentNullException(nameof(log)); this.console = console ?? throw new ArgumentNullException(nameof(console)); this.configFileLocator = configFileLocator ?? throw new ArgumentNullException(nameof(configFileLocator)); this.configProvider = configProvider ?? throw new ArgumentNullException(nameof(configFileLocator)); this.gitVersionTool = gitVersionTool ?? throw new ArgumentNullException(nameof(gitVersionTool)); this.versionWriter = versionWriter ?? throw new ArgumentNullException(nameof(versionWriter)); this.helpWriter = helpWriter ?? throw new ArgumentNullException(nameof(helpWriter)); }
public GitVersionExecutor(ILog log, IConsole console, IConfigFileLocator configFileLocator, IConfigProvider configProvider, IGitVersionCalculateTool gitVersionCalculateTool, IGitVersionOutputTool gitVersionOutputTool, IVersionWriter versionWriter, IHelpWriter helpWriter, IGitRepositoryInfo repositoryInfo) { this.log = log ?? throw new ArgumentNullException(nameof(log)); this.console = console ?? throw new ArgumentNullException(nameof(console)); this.configFileLocator = configFileLocator ?? throw new ArgumentNullException(nameof(configFileLocator)); this.configProvider = configProvider ?? throw new ArgumentNullException(nameof(configFileLocator)); this.gitVersionCalculateTool = gitVersionCalculateTool ?? throw new ArgumentNullException(nameof(gitVersionCalculateTool)); this.gitVersionOutputTool = gitVersionOutputTool ?? throw new ArgumentNullException(nameof(gitVersionOutputTool)); this.versionWriter = versionWriter ?? throw new ArgumentNullException(nameof(versionWriter)); this.helpWriter = helpWriter ?? throw new ArgumentNullException(nameof(helpWriter)); this.repositoryInfo = repositoryInfo ?? throw new ArgumentNullException(nameof(repositoryInfo)); }
public GitVersionExecutor(ILog log, IConsole console, IConfigFileLocator configFileLocator, IConfigProvider configProvider, IGitVersionCalculateTool gitVersionCalculateTool, IGitVersionOutputTool gitVersionOutputTool, IVersionWriter versionWriter, IHelpWriter helpWriter, IGitRepositoryInfo repositoryInfo) { this.log = log.NotNull(); this.console = console.NotNull(); this.configFileLocator = configFileLocator.NotNull(); this.configProvider = configProvider.NotNull(); this.gitVersionCalculateTool = gitVersionCalculateTool.NotNull(); this.gitVersionOutputTool = gitVersionOutputTool.NotNull(); this.versionWriter = versionWriter.NotNull(); this.helpWriter = helpWriter.NotNull(); this.repositoryInfo = repositoryInfo.NotNull(); }
public HelpWriter(IVersionWriter versionWriter, IConsole console) { this.versionWriter = versionWriter ?? throw new ArgumentNullException(nameof(versionWriter)); this.console = console ?? throw new ArgumentNullException(nameof(console)); }
public HelpWriter(IVersionWriter versionWriter) { this.versionWriter = versionWriter ?? throw new ArgumentNullException(nameof(versionWriter)); }
public VersionWriterTests() { var sp = ConfigureServices(services => services.AddModule(new GitVersionAppModule())); this.versionWriter = sp.GetRequiredService <IVersionWriter>(); }
public HelpWriter(IVersionWriter versionWriter, IConsole console) { this.versionWriter = versionWriter.NotNull(); this.console = console.NotNull(); }
public VersionWriterTests() { this.versionWriter = new VersionWriter(); }
public HelpWriter(IVersionWriter versionWriter) { this.versionWriter = versionWriter; }