25 writes to RunCallback
Aspire.Cli.Tests (25)
Commands\NewCommandLocalTemplateTests.ConfiguredGitSourceObjects.cs (2)
272git.RunCallback = (command, token) => 363git.RunCallback = (command, token) => realGit.RunAsync(
Commands\NewCommandLocalTemplateTests.ConfiguredGitSources.cs (6)
40git.RunCallback = (command, token) => 96git.RunCallback = (command, token) => 257git.RunCallback = (command, token) => command.Arguments[0] == "ls-remote" 321git.RunCallback = (command, token) => 388git.RunCallback = (command, token) => 527git.RunCallback = (command, token) => realGit.RunAsync(
Commands\NewCommandLocalTemplateTests.cs (2)
1773gitCommands.RunCallback = (command, token) => 1860RunCallback = (_, token) =>
Commands\NewCommandLocalTemplateTests.SourceListGit.cs (2)
254git.RunCallback = (command, token) => run(command with 296recording.RunCallback = (command, token) =>
Configuration\ConfigSourceServiceGitTests.cs (5)
48RunCallback = (_, _) => throw new GitCommandException(kind, 128) 84RunCallback = (command, token) => 128RunCallback = (command, token) => 571RunCallback = (command, token) => runner.RunAsync(command.WorkingDirectory, command.Arguments, command.Mode, token) 683RunCallback = (command, cancellationToken) => runner.RunAsync(command.WorkingDirectory, command.Arguments, command.Mode, cancellationToken)
Git\GitClientTests.cs (1)
184RunCallback = (command, _) => Task.FromResult(command.Arguments[2] == "-s" ? "23\n" : content)
Templating\TemplateEngineFactoryGitTests.cs (6)
29commands.RunCallback = (command, token) => 114commands.RunCallback = (_, _) => commands.Commands.Count == failingCommand 149RunCallback = (_, _) => 172RunCallback = (_, token) => 198RunCallback = async (_, token) => 227commands.RunCallback = (command, token) =>
TestServices\TestGitCommandRunner.cs (1)
22commands.RunCallback = async (command, token) =>
12 references to RunCallback
Aspire.Cli.Tests (12)
Commands\NewCommandLocalTemplateTests.ConfiguredGitSourceObjects.cs (1)
271var run = Assert.IsType<Func<GitCommandInvocation, CancellationToken, Task<string>>>(git.RunCallback);
Commands\NewCommandLocalTemplateTests.ConfiguredGitSources.cs (5)
39var runGit = Assert.IsType<Func<GitCommandInvocation, CancellationToken, Task<string>>>(git.RunCallback); 95var runGit = git.RunCallback ?? throw new InvalidOperationException("A template checkout must configure the Git runner."); 256var run = Assert.IsType<Func<GitCommandInvocation, CancellationToken, Task<string>>>(git.RunCallback); 320var run = Assert.IsType<Func<GitCommandInvocation, CancellationToken, Task<string>>>(git.RunCallback); 387var run = Assert.IsType<Func<GitCommandInvocation, CancellationToken, Task<string>>>(git.RunCallback);
Commands\NewCommandLocalTemplateTests.cs (1)
1772var run = Assert.IsType<Func<GitCommandInvocation, CancellationToken, Task<string>>>(gitCommands.RunCallback);
Commands\NewCommandLocalTemplateTests.SourceListGit.cs (1)
250var run = Assert.IsType<Func<GitCommandInvocation, CancellationToken, Task<string>>>(git.RunCallback);
Templating\TemplateEngineFactoryGitTests.cs (2)
28var run = Assert.IsType<Func<GitCommandInvocation, CancellationToken, Task<string>>>(commands.RunCallback); 226var run = Assert.IsType<Func<GitCommandInvocation, CancellationToken, Task<string>>>(commands.RunCallback);
TestServices\TestGitCommandRunner.cs (2)
59var output = RunCallback is null ? Output : await RunCallback(command, cancellationToken);