65 references to Text
Aspire.Hosting (5)
ApplicationModel\ParameterResource.cs (1)
142
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 (1)
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
159
InputType inputType = InputType.
Text
;
Aspire.Hosting.Azure.Tests (5)
AzureDeployerTests.cs (3)
585
Assert.Equal(InputType.
Text
, input.InputType);
848
Assert.Equal(InputType.
Text
, input.InputType);
893
Assert.Equal(InputType.
Text
, input.InputType);
ProvisioningContextProviderTests.cs (2)
456
Assert.Equal(InputType.
Text
, input.InputType);
750
Assert.Equal(InputType.
Text
, subscriptionInput.InputType);
Aspire.Hosting.Tests (44)
AddParameterTests.cs (1)
407
Assert.Equal(InputType.
Text
, input.InputType);
Dashboard\DashboardServiceTests.cs (2)
321
new Aspire.Hosting.InteractionInput { Name = "Input", InputType = Aspire.Hosting.InputType.
Text
});
368
new Aspire.Hosting.InteractionInput { Name = "Input", InputType = Aspire.Hosting.InputType.
Text
, Label = "Input" });
InteractionServiceTests.cs (37)
279
var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.
Text
, };
301
inputs: [new InputDto("Value", string.Empty, InputType.
Text
)]);
316
var input = new InteractionInput { Name = "Value", Label = "Value", InputType = InputType.
Text
, Required = true };
325
inputs: [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)]
450
inputs: [new InputDto("Value", newValue, InputType.
Text
)]);
475
InputType = InputType.
Text
,
482
Assert.Equal(InputType.
Text
, input.InputType);
495
InputType = InputType.
Text
,
513
InputType = InputType.
Text
,
548
InputType = InputType.
Text
,
560
new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.
Text
},
600
new InteractionInput { Name = "UserName", Label = "User Name", InputType = InputType.
Text
},
601
new InteractionInput { Name = "EmailAddress", Label = "Email Address", InputType = InputType.
Text
},
634
new InteractionInput { Name = "ExplicitName", Label = "Explicit", InputType = InputType.
Text
},
635
new InteractionInput { Name = "GeneratedLabel", Label = "Generated Label", InputType = InputType.
Text
},
636
new InteractionInput { Name = "AnotherExplicit", Label = "Another", InputType = InputType.
Text
}
657
new InteractionInput { Name = "Duplicate", Label = "First", InputType = InputType.
Text
},
658
new InteractionInput { Name = "Duplicate", Label = "Second", InputType = InputType.
Text
}
672
new InteractionInput { Name = "Username", Label = "First", InputType = InputType.
Text
},
673
new InteractionInput { Name = "USERNAME", Label = "Second", InputType = InputType.
Text
}
687
new InteractionInput { Name = "Input1", InputType = InputType.
Text
},
688
new InteractionInput { Name = "Input2", InputType = InputType.
Text
},
689
new InteractionInput { Name = "Input3", InputType = InputType.
Text
}
720
new InteractionInput { Name = "SpecialInput", Label = "!@#$%^&*()", InputType = InputType.
Text
},
721
new InteractionInput { Name = "EmptyLabel", Label = "", InputType = InputType.
Text
},
722
new InteractionInput { Name = "WhitespaceLabel", Label = " ", InputType = InputType.
Text
}
757
new InteractionInput { Name = "Valid", Label = "Valid", InputType = InputType.
Text
}
773
new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.
Text
},
787
new InputDto("Username", "testuser", InputType.
Text
),
880
new InteractionInput { Name = "Username", Label = "Username", InputType = InputType.
Text
},
911
inputs: [new InputDto("Username", "testuser", InputType.
Text
)]).DefaultTimeout();
935
new InteractionInput { Name = "Email", Label = "Email", InputType = InputType.
Text
, Required = true },
969
new InputDto("Email", "test@example.com", InputType.
Text
),
Orchestrator\ParameterProcessorTests.cs (4)
219
Assert.Equal(InputType.
Text
, input.InputType);
225
Assert.Equal(InputType.
Text
, input.InputType);
449
Assert.Equal(InputType.
Text
, param1Input.InputType);
455
Assert.Equal(InputType.
Text
, param2Input.InputType);
ExternalServices.AppHost (1)
AppHost.cs (1)
14
InputType = InputType.
Text
,
Publishers.AppHost (3)
DistributedApplicationBuilderExtensions.cs (3)
51
InputType = InputType.
Text
,
59
InputType = InputType.
Text
,
135
InputType = InputType.
Text
,
Stress.AppHost (6)
InteractionCommands.cs (6)
58
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." };
59
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 };
71
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 };
238
new InteractionInput { Name = "Name", InputType = InputType.
Text
, Label = "Name", Placeholder = "Enter name", Required = true, MaxLength = 50 },
364
InputType = InputType.
Text
,
565
InputType = InputType.
Text
,