1 type derived from AddCommandPrompter
Aspire.Cli.Tests (1)
Commands\AddCommandTests.cs (1)
5274
internal sealed class TestAddCommandPrompter(IInteractionService interactionService, CliExecutionContext executionContext) :
AddCommandPrompter
(interactionService, executionContext)
15 instantiations of AddCommandPrompter
Aspire.Cli.Tests (15)
Commands\AddCommandTests.cs (12)
109
options.AddCommandPrompterFactory = provider => new
AddCommandPrompter
(provider.GetRequiredService<IInteractionService>(), provider.GetRequiredService<CliExecutionContext>());
237
var prompter = new
AddCommandPrompter
(interaction, workspace.CreateExecutionContext());
368
options.AddCommandPrompterFactory = provider => new
AddCommandPrompter
(provider.GetRequiredService<IInteractionService>(), provider.GetRequiredService<CliExecutionContext>());
423
var prompter = new
AddCommandPrompter
(interaction, workspace.CreateExecutionContext());
3614
var prompter = new
AddCommandPrompter
(interaction, executionContext);
3653
var prompter = new
AddCommandPrompter
(interactionService, provider.GetRequiredService<CliExecutionContext>());
3701
var prompter = new
AddCommandPrompter
(interactionService, provider.GetRequiredService<CliExecutionContext>());
3749
var prompter = new
AddCommandPrompter
(interactionService, provider.GetRequiredService<CliExecutionContext>());
3806
var prompter = new
AddCommandPrompter
(interactionService, provider.GetRequiredService<CliExecutionContext>());
3844
var prompter = new
AddCommandPrompter
(interactionService, workspace.CreateExecutionContext());
3899
var prompter = new
AddCommandPrompter
(interactionService, workspace.CreateExecutionContext());
4060
options.AddCommandPrompterFactory = provider => new
AddCommandPrompter
(provider.GetRequiredService<IInteractionService>(), provider.GetRequiredService<CliExecutionContext>());
Interaction\ConsoleInteractionServiceTests.cs (2)
105
var selected = await new
AddCommandPrompter
(interaction, CreateExecutionContext()).PromptForIntegrationAsync(packages, CancellationToken.None);
217
var selected = await new
AddCommandPrompter
(interaction, CreateExecutionContext()).PromptForIntegrationVersionAsync(packages, "daily", CancellationToken.None);
Utils\CliTestHelper.cs (1)
469
return new
AddCommandPrompter
(interactionService, serviceProvider.GetRequiredService<CliExecutionContext>());
15 references to AddCommandPrompter
aspire (3)
Commands\AddCommand.cs (2)
725
var selectedSource = promptForPackage && candidates.Select(
AddCommandPrompter
.GetSourceIdentity).Distinct().Skip(1).Any()
796
(packageVersions.Select(
AddCommandPrompter
.GetSourceIdentity).Distinct().Skip(1).Any() ? version.Package.Source : null));
Program.cs (1)
478
builder.Services.AddSingleton<IAddCommandPrompter,
AddCommandPrompter
>();
Aspire.Cli.Tests (12)
Commands\AddCommandTests.cs (11)
233
choice => choice.Group?.Id ==
AddCommandPrompter
.GetSourceIdentity(selected));
237
var
prompter = new AddCommandPrompter(interaction, workspace.CreateExecutionContext());
423
var
prompter = new AddCommandPrompter(interaction, workspace.CreateExecutionContext());
430
Assert.Equal(packages.Select(
AddCommandPrompter
.GetSourceIdentity),
3614
var
prompter = new AddCommandPrompter(interaction, executionContext);
3653
var
prompter = new AddCommandPrompter(interactionService, provider.GetRequiredService<CliExecutionContext>());
3701
var
prompter = new AddCommandPrompter(interactionService, provider.GetRequiredService<CliExecutionContext>());
3749
var
prompter = new AddCommandPrompter(interactionService, provider.GetRequiredService<CliExecutionContext>());
3806
var
prompter = new AddCommandPrompter(interactionService, provider.GetRequiredService<CliExecutionContext>());
3844
var
prompter = new AddCommandPrompter(interactionService, workspace.CreateExecutionContext());
3899
var
prompter = new AddCommandPrompter(interactionService, workspace.CreateExecutionContext());
Interaction\ConsoleInteractionServiceTests.cs (1)
21
using AddCommandPrompter = Aspire.Cli.Commands.
AddCommandPrompter
;