12 instantiations of EmptyChoicesException
aspire (8)
Commands\AddCommand.cs (3)
250
throw new
EmptyChoicesException
(AddCommandStrings.NoIntegrationPackagesFound);
313
throw new
EmptyChoicesException
(message);
752
throw new
EmptyChoicesException
(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.SpecifiedVersionNotFoundForPackage, selectedPackage.Package.Id, preferredVersion));
Interaction\ConsoleInteractionService.cs (2)
326
throw new
EmptyChoicesException
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText));
475
throw new
EmptyChoicesException
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText));
Templating\TemplateNuGetConfigService.cs (3)
369
throw new
EmptyChoicesException
(
390
throw new
EmptyChoicesException
(
399
throw new
EmptyChoicesException
(Resources.TemplatingStrings.NoTemplateVersionsFound);
Aspire.Cli.Tests (4)
TestServices\TestExtensionInteractionService.cs (2)
86
throw new
EmptyChoicesException
($"No items available for selection: {promptText}");
106
throw new
EmptyChoicesException
($"No items available for selection: {promptText}");
TestServices\TestInteractionService.cs (2)
199
throw new
EmptyChoicesException
($"No items available for selection: {promptText}");
242
throw new
EmptyChoicesException
($"No items available for selection: {promptText}");
12 references to EmptyChoicesException
aspire (4)
Commands\AddCommand.cs (1)
512
catch (
EmptyChoicesException
ex)
Commands\InitCommand.cs (1)
493
catch (
EmptyChoicesException
ex)
Templating\DotNetTemplateFactory.cs (1)
581
catch (
EmptyChoicesException
ex)
Templating\TemplateNuGetConfigService.cs (1)
268
/// <exception cref="
EmptyChoicesException
">Thrown when no template package versions are available across the considered channels.</exception>
Aspire.Cli.Tests (8)
Interaction\ConsoleInteractionServiceTests.cs (3)
607
await Assert.ThrowsAsync<
EmptyChoicesException
>(() => interaction.PromptForSelectionAsync("Select:", Array.Empty<string>(), choice => choice,
663
await Assert.ThrowsAsync<
EmptyChoicesException
>(() =>
675
await Assert.ThrowsAsync<
EmptyChoicesException
>(() =>
Templating\TemplateNuGetConfigServiceTests.cs (5)
476
await Assert.ThrowsAsync<Aspire.Cli.Interaction.
EmptyChoicesException
>(
935
var
exception = await Assert.ThrowsAsync<Aspire.Cli.Interaction.
EmptyChoicesException
>(
1085
var
exception = await Assert.ThrowsAsync<Aspire.Cli.Interaction.
EmptyChoicesException
>(