38 writes to PromptForSelectionCallback
Aspire.Cli.Tests (38)
Backchannel\AppHostConnectionResolverTests.cs (1)
422
PromptForSelectionCallback
= (_, _, _, _) =>
Commands\AddCommandTests.cs (8)
2201
mockInteraction.
PromptForSelectionCallback
= (message, choices, formatter, ct) =>
2249
mockInteraction.
PromptForSelectionCallback
= (message, choices, formatter, ct) =>
2297
mockInteraction.
PromptForSelectionCallback
= (message, choices, formatter, ct) =>
2355
mockInteraction.
PromptForSelectionCallback
= (message, choices, formatter, ct) =>
2397
PromptForSelectionCallback
= (_, choices, formatter, _) =>
2460
PromptForSelectionCallback
= (_, choices, _, _) => choices.Cast<object>().First()
2664
PromptForSelectionCallback
= (message, choices, formatter, ct) =>
2726
PromptForSelectionCallback
= (message, choices, formatter, ct) => choices.Cast<object>().First()
Commands\InitCommandTests.cs (2)
207
PromptForSelectionCallback
= (_, _, _, _) => throw new InvalidOperationException("File-based initialization must not prompt for a solution.")
486
PromptForSelectionCallback
= (_, choices, _, _) =>
Commands\NewCommandTests.cs (5)
781
testInteractionService.
PromptForSelectionCallback
= (promptText, choices, formatter, ct) =>
892
PromptForSelectionCallback
= (promptText, choices, choiceFormatter, cancellationToken) =>
1012
PromptForSelectionCallback
= (promptText, choices, choiceFormatter, cancellationToken) =>
1060
PromptForSelectionCallback
= (promptText, choices, choiceFormatter, cancellationToken) =>
1127
PromptForSelectionCallback
= (promptText, choices, choiceFormatter, cancellationToken) =>
Commands\ResourceCommandTests.cs (3)
88
PromptForSelectionCallback
= (_, _, _, _) => throw new InvalidOperationException("Help should not prompt for an AppHost.")
160
PromptForSelectionCallback
= (_, _, _, _) =>
203
PromptForSelectionCallback
= (_, _, _, _) =>
Commands\StopCommandTests.cs (1)
318
interactionService.
PromptForSelectionCallback
= (_, _, _, _) =>
Commands\UpdateCommandTests.cs (17)
1457
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
1582
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
1676
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
1741
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
1863
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
1920
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
1985
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
2426
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
2597
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
2653
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
2839
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
2914
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
2953
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
2998
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
3043
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
3126
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
3260
PromptForSelectionCallback
= (prompt, choices, formatter, ct) =>
Projects\ProjectLocatorTests.cs (1)
1677
PromptForSelectionCallback
= (_, choices, _, _) =>
2 references to PromptForSelectionCallback
Aspire.Cli.Tests (2)
TestServices\TestInteractionService.cs (2)
191
if (
PromptForSelectionCallback
is not null)
193
var result =
PromptForSelectionCallback
(promptText, choices, o => choiceFormatter((T)o), cancellationToken);