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