public GetPerforceChanges() { this.commandLineParser = new CommandLineParser(); this.processWrapper = new ProcessWrapper(); this.changesParser = new ChangesParser(); this.cmdlet = new CmdletAdapter(this); }
public void InjectDependencies(ICommandLineParser commandLineParser, IProcessWrapper processWrapper, IChangesParser changesParser, ICmdlet cmdlet) { this.commandLineParser = commandLineParser; this.processWrapper = processWrapper; this.changesParser = changesParser; this.cmdlet = cmdlet; }
public PerforceCodeChurnProcessor(IProcessWrapper processWrapper, IChangesParser changesParser, IDescribeParser describeParser, ICommandLineParser commandLineParser, IBugDatabaseProcessor bugDatabaseProcessor, ILogger logger, IStopWatch stopWatch, IOutputProcessor outputProcessor, P4ExtractCommandLineArgs args) : this(processWrapper, changesParser, describeParser, commandLineParser, bugDatabaseProcessor, logger, stopWatch, outputProcessor, args.OutputFile, args.OutputType, args.BugDatabaseDLL, args.BugDatabaseOutputFile, args.BugDatabaseDllArgs, args.P4ChangesCommandLine, args.P4DescribeCommandLine, args.BugRegexes) { if (string.IsNullOrWhiteSpace(bugDatabaseDLL) == false && string.IsNullOrWhiteSpace(bugDatabaseOutputFile)) { throw new Exception("Dll specified without known output file"); } this.bugDatabaseOutputFile = args.BugDatabaseOutputFile; this.bugDatabaseOutputType = args.BugDatabaseOutputType; }
private PerforceCodeChurnProcessor(IProcessWrapper processWrapper, IChangesParser changesParser, IDescribeParser describeParser, ICommandLineParser commandLineParser, IBugDatabaseProcessor bugDatabaseProcessor, ILogger logger, IStopWatch stopWatch, IOutputProcessor outputProcessor, string outputFile, OutputType outputType, string bugDatabaseDLL, string bugDatabaseOutputFile, IEnumerable <string> bugDatabaseDllArgs, string p4ChangesCommandLine, string p4DescribeCommandLine, string bugRegexes) { this.processWrapper = processWrapper; this.changesParser = changesParser; this.describeParser = describeParser; this.commandLineParser = commandLineParser; this.bugDatabaseProcessor = bugDatabaseProcessor; this.logger = logger; this.stopWatch = stopWatch; this.outputProcessor = outputProcessor; this.outputFile = outputFile; this.outputType = outputType; this.bugDatabaseDLL = bugDatabaseDLL; this.bugDatabaseOutputFile = bugDatabaseOutputFile; this.bugDatabaseDllArgs = bugDatabaseDllArgs; this.p4ChangesCommandLine = p4ChangesCommandLine; this.p4DescribeCommandLine = p4DescribeCommandLine; this.changesetProcessor = new ChangesetProcessor(bugRegexes, this.logger); }
public PerforceCodeChurnProcessor(IProcessWrapper processWrapper, IChangesParser changesParser, IDescribeParser describeParser, ICommandLineParser commandLineParser, IBugDatabaseProcessor bugDatabaseProcessor, ILogger logger, IStopWatch stopWatch, IOutputProcessor outputProcessor, P4ExtractToCosmosDbCommandLineArgs args) : this(processWrapper, changesParser, describeParser, commandLineParser, bugDatabaseProcessor, logger, stopWatch, outputProcessor, string.Empty, OutputType.CosmosDb, args.BugDatabaseDLL, string.Empty, args.BugDatabaseDllArgs, args.P4ChangesCommandLine, args.P4DescribeCommandLine, args.BugRegexes) { }