69 references to Text
Aspire.Hosting (5)
ApplicationModel\ParameterResource.cs (1)
119InputType = 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 (3)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (1)
367InputType = InputType.Text,
Provisioning\Internal\RunModeProvisioningContextProvider.cs (2)
161InputType = string.IsNullOrEmpty(_options.SubscriptionId) ? InputType.Choice : InputType.Text, 219InputType = InputType.Text,
Aspire.Hosting.Azure.Tests (7)
AzureDeployerTests.cs (4)
96Assert.Equal(InputType.Text, input.InputType); 501Assert.Equal(InputType.Text, input.InputType); 737Assert.Equal(InputType.Text, input.InputType); 782Assert.Equal(InputType.Text, input.InputType);
ProvisioningContextProviderTests.cs (3)
307Assert.Equal(InputType.Text, input.InputType); 445Assert.Equal(InputType.Text, input.InputType); 460Assert.Equal(InputType.Text, input.InputType);
Aspire.Hosting.Tests (44)
AddParameterTests.cs (1)
406Assert.Equal(InputType.Text, input.InputType);
Dashboard\DashboardServiceTests.cs (2)
320new Aspire.Hosting.InteractionInput { Name = "Input", InputType = Aspire.Hosting.InputType.Text }); 367new Aspire.Hosting.InteractionInput { Name = "Input", InputType = Aspire.Hosting.InputType.Text, Label = "Input" });
InteractionServiceTests.cs (37)
278var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, }; 300inputs: [new InputDto("Value", string.Empty, InputType.Text)]); 315var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.Text, Required = true }; 324inputs: [new InputDto("Value", string.Empty, InputType.Text)]); 424[InlineData(InputType.Text, null)] 425[InlineData(InputType.Text, 1)] 426[InlineData(InputType.Text, 10)] 427[InlineData(InputType.Text, InteractionHelpers.DefaultMaxLength)] 449inputs: [new InputDto("Value", newValue, InputType.Text)]); 474InputType = InputType.Text, 481Assert.Equal(InputType.Text, input.InputType); 494InputType = InputType.Text, 512InputType = InputType.Text, 547InputType = InputType.Text, 559new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 599new InteractionInput { Name = "UserName", Label = "User Name", InputType = InputType.Text }, 600new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType = InputType.Text }, 633new InteractionInput { Name = "ExplicitName", Label = "Explicit", InputType = InputType.Text }, 634new InteractionInput { Name = "GeneratedLabel", Label = "Generated Label", InputType = InputType.Text }, 635new InteractionInput { Name = "AnotherExplicit", Label = "Another", InputType = InputType.Text } 656new InteractionInput { Name = "Duplicate", Label = "First", InputType = InputType.Text }, 657new InteractionInput { Name = "Duplicate", Label = "Second", InputType = InputType.Text } 671new InteractionInput { Name = "Username", Label = "First", InputType = InputType.Text }, 672new InteractionInput { Name = "USERNAME", Label = "Second", InputType = InputType.Text } 686new InteractionInput { Name = "Input1", InputType = InputType.Text }, 687new InteractionInput { Name = "Input2", InputType = InputType.Text }, 688new InteractionInput { Name = "Input3", InputType = InputType.Text } 719new InteractionInput { Name = "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.Text }, 720new InteractionInput { Name = "EmptyLabel", Label = "", InputType = InputType.Text }, 721new InteractionInput { Name = "WhitespaceLabel", Label = " ", InputType = InputType.Text } 756new InteractionInput { Name = "Valid", Label = "Valid", InputType = InputType.Text } 772new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 786new InputDto("Username", "testuser", InputType.Text), 879new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.Text }, 910inputs: [new InputDto("Username", "testuser", InputType.Text)]).DefaultTimeout(); 934new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.Text, Required = true }, 968new InputDto("Email", "test@example.com", InputType.Text),
Orchestrator\ParameterProcessorTests.cs (4)
210Assert.Equal(InputType.Text, input.InputType); 216Assert.Equal(InputType.Text, input.InputType); 437Assert.Equal(InputType.Text, param1Input.InputType); 443Assert.Equal(InputType.Text, param2Input.InputType);
ExternalServices.AppHost (1)
AppHost.cs (1)
14InputType = InputType.Text,
Publishers.AppHost (3)
DistributedApplicationBuilderExtensions.cs (3)
50InputType = InputType.Text, 58InputType = InputType.Text, 134InputType = InputType.Text,
Stress.AppHost (6)
InteractionCommands.cs (6)
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 }; 70var 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 }; 237new InteractionInput { Name = "Name", InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 }, 363InputType = InputType.Text, 564InputType = InputType.Text,