public GetGitLog() { this.commandLineParser = new CommandLineParser(); this.processWrapper = new ProcessWrapper(); this.gitLogParser = new GitLogParser(); this.cmdlet = new CmdletAdapter(this); }
public void InjectDependencies(ICommandLineParser commandLineParser, IProcessWrapper processWrapper, IGitLogParser gitLogParser, ICmdlet cmdlet) { this.commandLineParser = commandLineParser; this.processWrapper = processWrapper; this.gitLogParser = gitLogParser; this.cmdlet = cmdlet; }
private GitCodeChurnProcessor(ICommandLineParser commandLineParser, IProcessWrapper processWrapper, IGitLogParser gitLogParser, IOutputProcessor outputProcessor, IBugDatabaseProcessor bugDatabaseProcessor, ILogger logger, string outputFile, OutputType outputType, string bugRegexes, string bugDatabaseDLL, string bugDatabaseOutputFile, IEnumerable <string> bugDatabaseDllArgs, string gitLogCommand) { this.commandLineParser = commandLineParser; this.processWrapper = processWrapper; this.gitLogParser = gitLogParser; this.outputProcessor = outputProcessor; this.bugDatabaseProcessor = bugDatabaseProcessor; this.logger = logger; this.outputType = outputType; this.outputFile = outputFile; this.bugDatabaseDLL = bugDatabaseDLL; this.bugDatabaseOutputFile = bugDatabaseOutputFile; this.bugDatabaseDllArgs = bugDatabaseDllArgs; this.gitLogCommand = gitLogCommand; this.bugRegexes = bugRegexes; this.changesetProcessor = new ChangesetProcessor(bugRegexes, this.logger); }
public GitCodeChurnProcessor(ICommandLineParser commandLineParser, IProcessWrapper processWrapper, IGitLogParser gitLogParser, IOutputProcessor outputProcessor, IBugDatabaseProcessor bugDatabaseProcessor, ILogger logger, GitExtractCommandLineArgs commandLineArgs) : this(commandLineParser, processWrapper, gitLogParser, outputProcessor, bugDatabaseProcessor, logger, commandLineArgs.OutputFile, commandLineArgs.OutputType, commandLineArgs.BugRegexes, commandLineArgs.BugDatabaseDLL, commandLineArgs.BugDatabaseOutputFile, commandLineArgs.BugDatabaseDllArgs, commandLineArgs.GitLogCommand) { if (string.IsNullOrWhiteSpace(bugDatabaseDLL) == false && string.IsNullOrWhiteSpace(bugDatabaseOutputFile)) { throw new Exception("Dll specified without known output file"); } this.bugDatabaseOutputFile = commandLineArgs.BugDatabaseOutputFile; this.bugDatabaseOutputType = commandLineArgs.BugDatabaseOutputType; }
public GitCodeChurnProcessor(ICommandLineParser commandLineParser, IProcessWrapper processWrapper, IGitLogParser gitLogParser, IOutputProcessor outputProcessor, IBugDatabaseProcessor bugDatabaseProcessor, ILogger logger, GitExtractToCosmosDbCommandLineArgs commandLineArgs) : this(commandLineParser, processWrapper, gitLogParser, outputProcessor, bugDatabaseProcessor, logger, string.Empty, OutputType.CosmosDb, commandLineArgs.BugRegexes, commandLineArgs.BugDatabaseDLL, string.Empty, commandLineArgs.BugDatabaseDllArgs, commandLineArgs.GitLogCommand) { }