public GitRepositoryConfigurer(IFileSystem fileSystem, IGitCommand gitCommand, TextReader reader, TextWriter writer) { _fileSystem = fileSystem; _gitCommand = gitCommand; _reader = reader; _writer = writer; }
public void SetupTests() { _console = Substitute.For <IConsole>(); _writer = Substitute.For <IConsoleWriter>(); var repoDirs = Substitute.For <IRepositoryPaths>(); repoDirs.RootFolder.Returns("C:\\Junk\\Folder\\"); repoDirs.RepositoryFolder.Returns("C:\\Junk\\Folder\\.git\\"); _cmdlet = Substitute.For <IGitCommand>(); _cmdlet.RepositoryDirectories.Returns(repoDirs); }
public ProgressForm(IGitCommand gitCommand) { InitializeComponent(); _gitCommand = gitCommand; _gitCommand.CommandProgress += _gitCommand_CommandProgress; _gitCommand.CommandSuccess += _gitCommand_CommandSuccess; _gitCommand.CommandAborted += _gitCommand_CommandAborted; _gitCommand.CommandFailed += _gitCommand_CommandFailed; _tracer = new RichTextBoxTraceListener(LogBox); Trace.AutoFlush = true; Trace.Listeners.Add(_tracer); }
public GitCommandParserBase(IGitCommand command) { this.Command = command; this.CmdletWriter = command.CmdletWriter; }
public GitTag() { Git = new GitCommand(); Force = false; }
public GitCheckout(IGitRepoParser gitRepoParser, IDirectoryUtils directoryUtils, IGitCommand gitCommand) { GitRepoParser = gitRepoParser; DirectoryUtils = directoryUtils; GitCommand = gitCommand; }
private static GitCommandLineBuilder CreateSut(IGitCommand command) { return(new GitCommandLineBuilder(command)); }
public GitStatusParser(IGitCommand command) : base(command) { }
public GitCommandLineBuilder(IGitCommand gitCommand) { this.gitCommand = gitCommand; }
public GitConfigParser(IGitCommand command) : base(command) { this.Command = command; }