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