21 references to InteractionHelpers
Aspire.Hosting (5)
ApplicationModel\ResourceCommandService.cs (1)
621
var maxLength =
InteractionHelpers
.GetMaxLength(argument.MaxLength);
InteractionService.cs (4)
140
return await PromptInputAsync(title, message, new InteractionInput { Name =
InteractionHelpers
.LabelToName(inputLabel), InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
200
.Select(input => (input.Name,
InteractionHelpers
.GetMaxFileCount(input.AllowMultipleFiles)))
574
var maxFileCount =
InteractionHelpers
.GetMaxFileCount(input.AllowMultipleFiles);
594
var maxLength =
InteractionHelpers
.GetMaxLength(input.MaxLength);
Aspire.Hosting.Tests (16)
Backchannel\AppHostRpcTargetUploadTests.cs (1)
22
fileUploadStore.StartInteraction(interactionId, [(inputName,
InteractionHelpers
.MaxFileCount)]);
Dashboard\DashboardServiceTests.cs (7)
837
fileUploadStore.StartInteraction(1, [("File",
InteractionHelpers
.MaxFileCount)]);
919
fileUploadStore.StartInteraction(1, [("File",
InteractionHelpers
.MaxFileCount)]);
940
fileUploadStore.StartInteraction(1, [("File",
InteractionHelpers
.MaxFileCount)]);
951
fileUploadStore.StartInteraction(1, [("File",
InteractionHelpers
.MaxFileCount)]);
981
fileUploadStore.StartInteraction(1, [("File",
InteractionHelpers
.MaxFileCount)]);
1034
fileUploadStore.StartInteraction(1, [("File",
InteractionHelpers
.MaxFileCount)]);
1212
fileUploadStore.StartInteraction(1, [("CertInput",
InteractionHelpers
.MaxFileCount)]);
Dashboard\InteractionFileUploadStoreTests.cs (2)
336
[InlineData(
InteractionHelpers
.MaxFileCount)]
547
int maxFileCount =
InteractionHelpers
.MaxFileCount)
InteractionServiceTests.cs (6)
511
[InlineData(InputType.Text,
InteractionHelpers
.DefaultMaxLength)]
526
var resolvedMaxLength =
InteractionHelpers
.GetMaxLength(maxLength);
1513
[InlineData(true,
InteractionHelpers
.MaxFileCount, true)]
1514
[InlineData(true,
InteractionHelpers
.MaxFileCount + 1, false)]
1529
Assert.Equal((input.Name,
InteractionHelpers
.GetMaxFileCount(allowMultipleFiles)), Assert.Single(registeredFileInputs));
1547
var maxFileCount = allowMultipleFiles ?
InteractionHelpers
.MaxFileCount : 1;