52 references to Text
Aspire.Hosting (4)
ApplicationModel\ParameterResource.cs (1)
119InputType = Secret ? InputType.SecretText : InputType.Text,
Dashboard\DashboardService.cs (1)
208Aspire.Hosting.InputType.Text => Aspire.DashboardService.Proto.V1.InputType.Text,
InteractionService.cs (2)
77return await PromptInputAsync(title, message, new InteractionInput { Name = inputLabel, InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false); 268case InputType.Text:
Aspire.Hosting.Azure (1)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (1)
110new InteractionInput { Name = ResourceGroupName, InputType = InputType.Text, Label = AzureProvisioningStrings.ResourceGroupLabel, Value = GetDefaultResourceGroupName() },
Aspire.Hosting.Azure.Tests (2)
AzureDeployerTests.cs (1)
99Assert.Equal(InputType.Text, input.InputType);
DefaultProvisioningContextProviderTests.cs (1)
312Assert.Equal(InputType.Text, input.InputType);
Aspire.Hosting.Tests (37)
AddParameterTests.cs (1)
406Assert.Equal(InputType.Text, input.InputType);
Dashboard\DashboardServiceTests.cs (2)
317new Aspire.Hosting.InteractionInput { Name = "Input", InputType = Aspire.Hosting.InputType.Text }); 363new Aspire.Hosting.InteractionInput { Name = "Input", InputType = Aspire.Hosting.InputType.Text, Label = "Input" });
InteractionServiceTests.cs (30)
178var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, }; 211var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true }; 286[InlineData(InputType.Text, null)] 287[InlineData(InputType.Text, 1)] 288[InlineData(InputType.Text, 10)] 289[InlineData(InputType.Text, InteractionHelpers.DefaultMaxLength)] 332InputType = InputType.Text, 339Assert.Equal(InputType.Text, input.InputType); 352InputType = InputType.Text, 370InputType = InputType.Text, 405InputType = InputType.Text, 417new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 457new InteractionInput { Name = "UserName", Label = "User Name", InputType = InputType.Text }, 458new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType = InputType.Text }, 491new InteractionInput { Name = "ExplicitName", Label = "Explicit", InputType = InputType.Text }, 492new InteractionInput { Name = "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text }, 493new InteractionInput { Name = "AnotherExplicit", Label = "Another", InputType = InputType.Text } 514new InteractionInput { Name = "Duplicate", Label = "First", InputType = InputType.Text }, 515new InteractionInput { Name = "Duplicate", Label = "Second", InputType = InputType.Text } 529new InteractionInput { Name = "Username", Label = "First", InputType = InputType.Text }, 530new InteractionInput { Name = "USERNAME", Label = "Second", InputType = InputType.Text } 544new InteractionInput { Name = "Input1", InputType = InputType.Text }, 545new InteractionInput { Name = "Input2", InputType = InputType.Text }, 546new InteractionInput { Name = "Input3", InputType = InputType.Text } 577new InteractionInput { Name = "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text }, 578new InteractionInput { Name = "EmptyLabel", Label = "", InputType = InputType.Text }, 579new InteractionInput { Name = "WhitespaceLabel", Label = " ", InputType = InputType.Text } 614new InteractionInput { Name = "Valid", Label = "Valid", InputType = InputType.Text } 630new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 669new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.Text, Required = true },
Orchestrator\ParameterProcessorTests.cs (4)
208Assert.Equal(InputType.Text, input.InputType); 214Assert.Equal(InputType.Text, input.InputType); 435Assert.Equal(InputType.Text, param1Input.InputType); 441Assert.Equal(InputType.Text, param2Input.InputType);
ExternalServices.AppHost (1)
AppHost.cs (1)
14InputType = InputType.Text,
Publishers.AppHost (3)
DistributedApplicationBuilderExtensions.cs (3)
41InputType = InputType.Text, 49InputType = InputType.Text, 103InputType = InputType.Text,
Stress.AppHost (4)
InteractionCommands.cs (4)
57var 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." }; 58var 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 }; 135new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 223InputType = InputType.Text,