65 references to Text
Aspire.Hosting (5)
ApplicationModel\ParameterResource.cs (1)
142InputType = Secret ? InputType.SecretText : InputType.Text,
Dashboard\DashboardService.cs (2)
228Aspire.Hosting.InputType.Text => Aspire.DashboardService.Proto.V1.InputType.Text, 241Aspire.DashboardService.Proto.V1.InputType.Text => InputType.Text,
InteractionService.cs (2)
108return await PromptInputAsync(title, message, new InteractionInput { Name = InteractionHelpers.LabelToName(inputLabel), InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false); 396case InputType.Text:
Aspire.Hosting.Azure (1)
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
159InputType inputType = InputType.Text;
Aspire.Hosting.Azure.Tests (5)
AzureDeployerTests.cs (3)
585Assert.Equal(InputType.Text, input.InputType); 848Assert.Equal(InputType.Text, input.InputType); 893Assert.Equal(InputType.Text, input.InputType);
ProvisioningContextProviderTests.cs (2)
456Assert.Equal(InputType.Text, input.InputType); 750Assert.Equal(InputType.Text, subscriptionInput.InputType);
Aspire.Hosting.Tests (44)
AddParameterTests.cs (1)
407Assert.Equal(InputType.Text, input.InputType);
Dashboard\DashboardServiceTests.cs (2)
321new Aspire.Hosting.InteractionInput { Name = "Input", InputType = Aspire.Hosting.InputType.Text }); 368new Aspire.Hosting.InteractionInput { Name = "Input", InputType = Aspire.Hosting.InputType.Text, Label = "Input" });
InteractionServiceTests.cs (37)
279var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, }; 301inputs: [new InputDto("Value", string.Empty, InputType.Text)]); 316var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true }; 325inputs: [new InputDto("Value", string.Empty, InputType.Text)]); 425[InlineData(InputType.Text, null)] 426[InlineData(InputType.Text, 1)] 427[InlineData(InputType.Text, 10)] 428[InlineData(InputType.Text, InteractionHelpers.DefaultMaxLength)] 450inputs: [new InputDto("Value", newValue, InputType.Text)]); 475InputType = InputType.Text, 482Assert.Equal(InputType.Text, input.InputType); 495InputType = InputType.Text, 513InputType = InputType.Text, 548InputType = InputType.Text, 560new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 600new InteractionInput { Name = "UserName", Label = "User Name", InputType = InputType.Text }, 601new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType = InputType.Text }, 634new InteractionInput { Name = "ExplicitName", Label = "Explicit", InputType = InputType.Text }, 635new InteractionInput { Name = "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text }, 636new InteractionInput { Name = "AnotherExplicit", Label = "Another", InputType = InputType.Text } 657new InteractionInput { Name = "Duplicate", Label = "First", InputType = InputType.Text }, 658new InteractionInput { Name = "Duplicate", Label = "Second", InputType = InputType.Text } 672new InteractionInput { Name = "Username", Label = "First", InputType = InputType.Text }, 673new InteractionInput { Name = "USERNAME", Label = "Second", InputType = InputType.Text } 687new InteractionInput { Name = "Input1", InputType = InputType.Text }, 688new InteractionInput { Name = "Input2", InputType = InputType.Text }, 689new InteractionInput { Name = "Input3", InputType = InputType.Text } 720new InteractionInput { Name = "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text }, 721new InteractionInput { Name = "EmptyLabel", Label = "", InputType = InputType.Text }, 722new InteractionInput { Name = "WhitespaceLabel", Label = " ", InputType = InputType.Text } 757new InteractionInput { Name = "Valid", Label = "Valid", InputType = InputType.Text } 773new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 787new InputDto("Username", "testuser", InputType.Text), 880new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 911inputs: [new InputDto("Username", "testuser", InputType.Text)]).DefaultTimeout(); 935new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.Text, Required = true }, 969new InputDto("Email", "test@example.com", InputType.Text),
Orchestrator\ParameterProcessorTests.cs (4)
219Assert.Equal(InputType.Text, input.InputType); 225Assert.Equal(InputType.Text, input.InputType); 449Assert.Equal(InputType.Text, param1Input.InputType); 455Assert.Equal(InputType.Text, param2Input.InputType);
ExternalServices.AppHost (1)
AppHost.cs (1)
14InputType = InputType.Text,
Publishers.AppHost (3)
DistributedApplicationBuilderExtensions.cs (3)
51InputType = InputType.Text, 59InputType = InputType.Text, 135InputType = InputType.Text,
Stress.AppHost (6)
InteractionCommands.cs (6)
58var inputNoMarkdown = new InteractionInput { Name = "Name", Label = "<strong>Name</strong>", InputType = InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, neque id efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.\r\n\r\nFor more information about the `IInteractionService`, see https://learn.microsoft.com." }; 59var inputHasMarkdown = new InteractionInput { Name = "Name", Label = "<strong>Name</strong>", InputType = InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, neque id efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.\r\n\r\nFor more information about the `IInteractionService`, see https://learn.microsoft.com.", EnableDescriptionMarkdown = true }; 71var inputHasMarkdown = new InteractionInput { Name = "Name", Label = "<strong>Name</strong>", InputType = InputType.Text, Placeholder = "Enter <strong>your</strong> name.", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id massa arcu. Morbi ac risus eget augue venenatis hendrerit. Morbi posuere, **neque id** efficitur ultrices, velit augue suscipit ante, vitae lacinia elit risus nec dui.", EnableDescriptionMarkdown = true }; 238new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 364InputType = InputType.Text, 565InputType = InputType.Text,