21 references to InteractionHelpers
Aspire.Hosting (5)
ApplicationModel\ResourceCommandService.cs (1)
621var maxLength = InteractionHelpers.GetMaxLength(argument.MaxLength);
InteractionService.cs (4)
151return await PromptInputAsync(title, message, new InteractionInput { Name = InteractionHelpers.LabelToName(inputLabel), InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false); 211.Select(input => (input.Name, InteractionHelpers.GetMaxFileCount(input.AllowMultipleFiles))) 624var maxFileCount = InteractionHelpers.GetMaxFileCount(input.AllowMultipleFiles); 644var maxLength = InteractionHelpers.GetMaxLength(input.MaxLength);
Aspire.Hosting.Tests (16)
Backchannel\AppHostRpcTargetUploadTests.cs (1)
22fileUploadStore.StartInteraction(interactionId, [(inputName, InteractionHelpers.MaxFileCount)]);
Dashboard\DashboardServiceTests.cs (7)
998fileUploadStore.StartInteraction(1, [("File", InteractionHelpers.MaxFileCount)]); 1080fileUploadStore.StartInteraction(1, [("File", InteractionHelpers.MaxFileCount)]); 1101fileUploadStore.StartInteraction(1, [("File", InteractionHelpers.MaxFileCount)]); 1112fileUploadStore.StartInteraction(1, [("File", InteractionHelpers.MaxFileCount)]); 1142fileUploadStore.StartInteraction(1, [("File", InteractionHelpers.MaxFileCount)]); 1195fileUploadStore.StartInteraction(1, [("File", InteractionHelpers.MaxFileCount)]); 1376fileUploadStore.StartInteraction(1, [("CertInput", InteractionHelpers.MaxFileCount)]);
Dashboard\InteractionFileUploadStoreTests.cs (2)
334[InlineData(InteractionHelpers.MaxFileCount)] 545int maxFileCount = InteractionHelpers.MaxFileCount)
InteractionServiceTests.cs (6)
615[InlineData(InputType.Text, InteractionHelpers.DefaultMaxLength)] 630var resolvedMaxLength = InteractionHelpers.GetMaxLength(maxLength); 1618[InlineData(true, InteractionHelpers.MaxFileCount, true)] 1619[InlineData(true, InteractionHelpers.MaxFileCount + 1, false)] 1634Assert.Equal((input.Name, InteractionHelpers.GetMaxFileCount(allowMultipleFiles)), Assert.Single(registeredFileInputs)); 1652var maxFileCount = allowMultipleFiles ? InteractionHelpers.MaxFileCount : 1;