49 references to ForType
Microsoft.AspNetCore.Mvc.Core.Test (25)
ModelBinding\Binders\BodyModelBinderTests.cs (21)
34
provider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
56
provider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
80
provider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
105
provider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
130
provider.
ForType
<Person>().BindingDetails(d =>
173
provider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
201
provider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
229
provider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
257
metadataProvider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
305
metadataProvider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
334
metadataProvider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
376
metadataProvider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
405
metadataProvider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
452
metadataProvider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
487
metadataProvider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
516
metadataProvider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
539
provider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
577
provider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
602
provider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
631
provider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
663
provider.
ForType
<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
ModelBinding\DefaultModelBindingContextTest.cs (1)
30
metadataProvider.
ForType
<object>().BindingDetails(d =>
ModelBinding\ModelBinderFactoryTest.cs (1)
344
metadataProvider.
ForType
<Employee>().BindingDetails(binding =>
ModelBinding\ParameterBinderTest.cs (2)
541
modelMetadataProvider.
ForType
<IJsonPatchDocument>().ValidationDetails(v => v.ValidateChildren = false);
603
modelMetadataProvider.
ForType
<IJsonPatchDocument>().ValidationDetails(v => v.ValidateChildren = false);
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
BodyValidationIntegrationTests.cs (1)
861
.
ForType
<Address6>()
ServicesModelBinderIntegrationTest.cs (1)
389
.
ForType
<ITypeActivatorCache>()
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (22)
DefaultDisplayTemplatesTest.cs (3)
70
provider.
ForType
<DefaultTemplatesUtilities.ObjectTemplateModel>().DisplayDetails(dd =>
96
provider.
ForType
<DefaultTemplatesUtilities.ObjectTemplateModel>().DisplayDetails(dd =>
235
provider.
ForType
<string>().DisplayDetails(dd =>
DefaultEditorTemplatesTest.cs (8)
286
provider.
ForType
<DefaultTemplatesUtilities.ObjectTemplateModel>().DisplayDetails(dd =>
318
provider.
ForType
<DefaultTemplatesUtilities.ObjectTemplateModel>().DisplayDetails(dd =>
475
provider.
ForType
<string>().DisplayDetails(dd =>
919
provider.
ForType
<DateTimeOffset>().DisplayDetails(dd =>
990
provider.
ForType
<DateTimeOffset>().DisplayDetails(dd =>
1060
provider.
ForType
<DateTime>().DisplayDetails(dd =>
1129
provider.
ForType
<DateTime>().DisplayDetails(dd =>
1195
provider.
ForType
<DateTimeOffset>().DisplayDetails(dd =>
Rendering\HtmlHelperDisplayNameExtensionsTest.cs (1)
95
.
ForType
<DefaultTemplatesUtilities.ObjectTemplateModel>()
Rendering\HtmlHelperDisplayTextTest.cs (5)
46
provider.
ForType
<OverriddenToStringModel>().DisplayDetails(dd =>
65
provider.
ForType
<OverriddenToStringModel>().DisplayDetails(dd =>
133
provider.
ForType
<OverriddenToStringModel>().DisplayDetails(dd =>
157
provider.
ForType
<OverriddenToStringModel>().DisplayDetails(dd =>
182
provider.
ForType
<OverriddenToStringModel>().DisplayDetails(dd =>
Rendering\HtmlHelperLabelExtensionsTest.cs (5)
156
.
ForType
<DefaultTemplatesUtilities.ObjectTemplateModel>()
184
.
ForType
<DefaultTemplatesUtilities.ObjectTemplateModel>()
210
.
ForType
<DefaultTemplatesUtilities.ObjectTemplateModel>()
236
.
ForType
<DefaultTemplatesUtilities.ObjectTemplateModel>()
262
.
ForType
<DefaultTemplatesUtilities.ObjectTemplateModel>()