1 instantiation of Person
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\BodyModelBinderTests.cs (1)
29
.Returns(InputFormatterResult.SuccessAsync(new
Person
()))
45 references to Person
Microsoft.AspNetCore.Mvc.Core.Test (45)
ModelBinding\Binders\BodyModelBinderTests.cs (45)
34
provider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
37
typeof(
Person
),
56
provider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
58
var bindingContext = GetBindingContext(typeof(
Person
), metadataProvider: provider);
80
provider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
82
var bindingContext = GetBindingContext(typeof(
Person
), metadataProvider: provider);
105
provider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
107
var bindingContext = GetBindingContext(typeof(
Person
), metadataProvider: provider);
130
provider.ForType<
Person
>().BindingDetails(d =>
138
typeof(
Person
),
173
provider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
176
typeof(
Person
),
201
provider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
204
typeof(
Person
),
229
provider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
232
typeof(
Person
),
257
metadataProvider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
260
var bindingContext = GetBindingContext(typeof(
Person
), httpContext, metadataProvider);
305
metadataProvider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
307
var bindingContext = GetBindingContext(typeof(
Person
), httpContext, metadataProvider);
334
metadataProvider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
336
var bindingContext = GetBindingContext(typeof(
Person
), httpContext, metadataProvider);
376
metadataProvider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
378
var bindingContext = GetBindingContext(typeof(
Person
), httpContext, metadataProvider);
405
metadataProvider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
407
var bindingContext = GetBindingContext(typeof(
Person
), httpContext, metadataProvider);
452
metadataProvider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
454
var bindingContext = GetBindingContext(typeof(
Person
), httpContext, metadataProvider);
487
metadataProvider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
489
var bindingContext = GetBindingContext(typeof(
Person
), httpContext, metadataProvider);
516
metadataProvider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
518
var bindingContext = GetBindingContext(typeof(
Person
), httpContext, metadataProvider);
539
provider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
542
typeof(
Person
),
577
provider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
578
var bindingContext = GetBindingContext(typeof(
Person
), metadataProvider: provider);
602
provider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
603
var bindingContext = GetBindingContext(typeof(
Person
), metadataProvider: provider);
613
Assert.Equal($"Attempting to bind model of type '{typeof(
Person
)}' using the name 'someName' in request data ...", writeList[0].State.ToString());
631
provider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
632
var bindingContext = GetBindingContext(typeof(
Person
), metadataProvider: provider);
644
$"Attempting to bind model of type '{typeof(
Person
)}' using the name 'someName' in request data ...", write.State.ToString()),
654
$"Done attempting to bind model of type '{typeof(
Person
)}' using the name 'someName'.", write.State.ToString()));
663
provider.ForType<
Person
>().BindingDetails(d => d.BindingSource = BindingSource.Body);
665
typeof(
Person
),