2 instantiations of ModelBindingResult
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\ModelBindingResult.cs (2)
17
return new
ModelBindingResult
(model: null, isModelSet: false);
27
return new
ModelBindingResult
(model, isModelSet: true);
707 references to ModelBindingResult
BasicWebSite (2)
Controllers\BindPropertiesController.cs (1)
31
bindingContext.Result =
ModelBindingResult
.Success("CustomBoundValue");
Controllers\ContactApiController.cs (1)
148
bindingContext.Result =
ModelBindingResult
.Success("From TestModelBinder: " + val);
FormatterWebSite (1)
PolymorphicBinder.cs (1)
18
bindingContext.Result =
ModelBindingResult
.Success(model);
Microsoft.AspNetCore.Mvc.Abstractions (24)
ModelBinding\IModelBinder.cs (2)
21
/// <see cref="
ModelBindingResult
.IsModelSet"/> set to <c>true</c>.
25
/// a value returned from <see cref="
ModelBindingResult
.Success"/>.
ModelBinding\ModelBindingContext.cs (3)
114
/// Gets or sets a <see cref="
ModelBindingResult
"/> which represents the result of the model binding process.
119
/// <see cref="
ModelBindingResult
.Success"/> if model binding succeeded.
122
public abstract
ModelBindingResult
Result { get; set; }
ModelBinding\ModelBindingResult.cs (19)
9
public readonly struct ModelBindingResult : IEquatable<
ModelBindingResult
>
12
/// Creates a <see cref="
ModelBindingResult
"/> representing a failed model binding operation.
14
/// <returns>A <see cref="
ModelBindingResult
"/> representing a failed model binding operation.</returns>
15
public static
ModelBindingResult
Failed()
21
/// Creates a <see cref="
ModelBindingResult
"/> representing a successful model binding operation.
24
/// <returns>A <see cref="
ModelBindingResult
"/> representing a successful model bind.</returns>
25
public static
ModelBindingResult
Success(object? model)
55
var other = obj as
ModelBindingResult
?;
73
public bool Equals(
ModelBindingResult
other)
94
/// Compares <see cref="
ModelBindingResult
"/> objects for equality.
96
/// <param name="x">A <see cref="
ModelBindingResult
"/>.</param>
97
/// <param name="y">A <see cref="
ModelBindingResult
"/>.</param>
99
public static bool operator ==(
ModelBindingResult
x,
ModelBindingResult
y)
105
/// Compares <see cref="
ModelBindingResult
"/> objects for inequality.
107
/// <param name="x">A <see cref="
ModelBindingResult
"/>.</param>
108
/// <param name="y">A <see cref="
ModelBindingResult
"/>.</param>
110
public static bool operator !=(
ModelBindingResult
x,
ModelBindingResult
y)
Microsoft.AspNetCore.Mvc.Core (65)
Controllers\ControllerBinderDelegateProvider.cs (2)
73
var
result = await parameterBinder.BindModelAsync(
99
var
result = await parameterBinder.BindModelAsync(
ModelBinding\Binders\BodyModelBinder.cs (2)
139
bindingContext.Result =
ModelBindingResult
.Success(model: null);
167
bindingContext.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\ByteArrayModelBinder.cs (1)
58
bindingContext.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\CancellationTokenModelBinder.cs (1)
26
bindingContext.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\CollectionModelBinder.cs (6)
130
bindingContext.Result = model == null ?
ModelBindingResult
.Failed() :
ModelBindingResult
.Success(model);
153
bindingContext.Result =
ModelBindingResult
.Failed();
186
bindingContext.Result =
ModelBindingResult
.Success(model);
211
/// <see cref="
ModelBindingResult
.IsModelSet" /> equal to <see langword="true" /> when a
350
ModelBindingResult
? result;
ModelBinding\Binders\ComplexObjectModelBinder.cs (11)
151
bindingContext.Result =
ModelBindingResult
.Failed();
155
bindingContext.Result =
ModelBindingResult
.Success(bindingContext.Model);
168
bindingContext.Result =
ModelBindingResult
.Failed();
274
var
result = await BindParameterAsync(bindingContext, parameter, parameterBinder, fieldName, modelName);
306
var
result = await BindParameterAsync(bindingContext, parameter, parameterBinder, fieldName, modelName);
368
var
result = await BindPropertyAsync(bindingContext, property, propertyBinder, fieldName, modelName);
433
private static async ValueTask<
ModelBindingResult
> BindPropertyAsync(
454
ModelBindingResult
result;
478
private static async ValueTask<
ModelBindingResult
> BindParameterAsync(
487
ModelBindingResult
result;
688
ModelBindingResult
result)
ModelBinding\Binders\ComplexTypeModelBinder.cs (7)
143
var
result = await BindProperty(bindingContext, property, fieldName, modelName);
216
bindingContext.Result =
ModelBindingResult
.Failed();
220
bindingContext.Result =
ModelBindingResult
.Success(bindingContext.Model);
256
private async Task<
ModelBindingResult
> BindProperty(
274
ModelBindingResult
result;
517
/// <param name="result">The <see cref="
ModelBindingResult
"/> for the property's new value.</param>
522
ModelBindingResult
result)
ModelBinding\Binders\DateTimeModelBinder.cs (1)
86
bindingContext.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\DecimalModelBinder.cs (1)
89
bindingContext.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\DictionaryModelBinder.cs (4)
115
var
result = bindingContext.Result;
173
bindingContext.Result =
ModelBindingResult
.Failed();
186
var
valueResult = bindingContext.Result;
213
bindingContext.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\DoubleModelBinder.cs (1)
89
bindingContext.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\EnumTypeModelBinder.cs (1)
47
bindingContext.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\FloatModelBinder.cs (1)
89
bindingContext.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
52
bindingContext.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\FormFileModelBinder.cs (1)
131
bindingContext.Result =
ModelBindingResult
.Success(value);
ModelBinding\Binders\HeaderModelBinder.cs (3)
81
ModelBindingResult
result;
150
bindingContext.Result =
ModelBindingResult
.Failed();
159
bindingContext.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\KeyedServicesModelBinder.cs (2)
27
bindingContext.Result =
ModelBindingResult
.Failed();
40
bindingContext.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\KeyValuePairModelBinder.cs (5)
46
var
keyResult = await KeyValuePairModelBinder<TKey, TValue>.TryBindStrongModel<TKey?>(bindingContext, _keyBinder, "Key", keyModelName);
49
var
valueResult = await KeyValuePairModelBinder<TKey, TValue>.TryBindStrongModel<TValue?>(bindingContext, _valueBinder, "Value", valueModelName);
57
bindingContext.Result =
ModelBindingResult
.Success(model);
85
bindingContext.Result =
ModelBindingResult
.Success(model);
90
internal static async Task<
ModelBindingResult
> TryBindStrongModel<TModel>(
ModelBinding\Binders\ServicesModelBinder.cs (1)
34
bindingContext.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\SimpleTypeModelBinder.cs (1)
129
bindingContext.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\TryParseModelBinder.cs (3)
18
private static readonly MethodInfo SuccessBindingResultMethod = typeof(
ModelBindingResult
).GetMethod(nameof(
ModelBindingResult
.Success), BindingFlags.Public | BindingFlags.Static)!;
80
bindingContext.Result =
ModelBindingResult
.Success(null);
ModelBinding\DefaultModelBindingContext.cs (2)
155
public override
ModelBindingResult
Result
337
public
ModelBindingResult
Result;
ModelBinding\ModelBindingHelper.cs (1)
270
var
modelBindingResult = modelBindingContext.Result;
ModelBinding\ParameterBinder.cs (6)
64
public virtual Task<
ModelBindingResult
> BindModelAsync(
84
public virtual async ValueTask<
ModelBindingResult
> BindModelAsync(
104
return
ModelBindingResult
.Failed();
136
var
modelBindingResult = modelBindingContext.Result;
177
ModelBindingResult
modelBindingResult,
234
ModelBindingResult
modelBindingResult,
Microsoft.AspNetCore.Mvc.Core.Test (150)
Controllers\ControllerBinderDelegateProviderTest.cs (13)
245
context.Result =
ModelBindingResult
.Success(value);
710
var binder = new StubModelBinder(
ModelBindingResult
.Success(model: null));
751
var binder = new StubModelBinder(
ModelBindingResult
.Success(model: null));
813
var binder = new StubModelBinder(
ModelBindingResult
.Success(model: null));
876
var binder = new StubModelBinder(
ModelBindingResult
.Success(model: null));
1029
bindingContext.Result =
ModelBindingResult
.Success(model);
1033
bindingContext.Result =
ModelBindingResult
.Failed();
1153
ModelBindingResult
result;
1156
result =
ModelBindingResult
.Success(10);
1160
result =
ModelBindingResult
.Success(new TransferInfo
1168
result =
ModelBindingResult
.Failed();
1171
return new ValueTask<
ModelBindingResult
>(result);
1308
mbc.Result =
ModelBindingResult
.Success(model);
ModelBinding\Binders\BinderTypeModelBinderTest.cs (1)
114
bindingContext.Result =
ModelBindingResult
.Success(_model);
ModelBinding\Binders\CollectionModelBinderTest.cs (9)
242
new StubModelBinder(result:
ModelBindingResult
.Failed()),
277
new StubModelBinder(result:
ModelBindingResult
.Failed()),
317
new StubModelBinder(result:
ModelBindingResult
.Failed()),
354
new StubModelBinder(result:
ModelBindingResult
.Failed()),
396
new StubModelBinder(result:
ModelBindingResult
.Failed()),
462
mbc.Result =
ModelBindingResult
.Success(42);
504
return
ModelBindingResult
.Failed();
520
return
ModelBindingResult
.Failed();
524
return
ModelBindingResult
.Success(model);
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (30)
443
elementSelector: item => (IModelBinder)new TestModelBinderProvider(item,
ModelBindingResult
.Success("Test")));
605
var propertyBinder = new TestModelBinderProvider(property,
ModelBindingResult
.Failed());
630
private readonly
ModelBindingResult
_result;
632
public TestModelBinderProvider(ModelMetadata modelMetadata,
ModelBindingResult
result)
669
var propertyBinder = new TestModelBinderProvider(property,
ModelBindingResult
.Failed());
708
var propertyBinder = new TestModelBinderProvider(property,
ModelBindingResult
.Success(model: null));
740
var propertyBinder = new TestModelBinderProvider(property,
ModelBindingResult
.Failed());
763
var propertyBinder = new TestModelBinderProvider(property,
ModelBindingResult
.Failed());
788
var propertyBinder = new TestModelBinderProvider(property,
ModelBindingResult
.Failed());
813
var propertyBinder = new TestModelBinderProvider(property,
ModelBindingResult
.Success(model: 57));
845
options.ModelBinderProviders.Insert(0, new TestModelBinderProvider(firstNameProperty,
ModelBindingResult
.Success("John")));
848
options.ModelBinderProviders.Insert(0, new TestModelBinderProvider(lastNameProperty,
ModelBindingResult
.Success("Doe")));
871
var
result =
ModelBindingResult
.Failed();
894
var
result =
ModelBindingResult
.Failed();
918
var
result =
ModelBindingResult
.Failed();
941
var
result =
ModelBindingResult
.Failed();
982
var
result =
ModelBindingResult
.Success(new Simple { Name = "Hanna" });
1006
var
result =
ModelBindingResult
.Success(new List<string>() { "hi" });
1026
var
result =
ModelBindingResult
.Success(new DateTime(2001, 1, 1));
1050
var
result =
ModelBindingResult
.Success(new DateTime(1800, 1, 1));
1071
var
result =
ModelBindingResult
.Success(model: null);
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (34)
787
binder.Results[property] =
ModelBindingResult
.Failed();
821
binder.Results[property] =
ModelBindingResult
.Failed();
857
binder.Results[property] =
ModelBindingResult
.Success(model: null);
886
binder.Results[property] =
ModelBindingResult
.Failed();
906
binder.Results[property] =
ModelBindingResult
.Failed();
928
binder.Results[property] =
ModelBindingResult
.Failed();
950
binder.Results[property] =
ModelBindingResult
.Success(model: 57);
978
binder.Results[property] =
ModelBindingResult
.Failed();
982
binder.Results[firstNameProperty] =
ModelBindingResult
.Success("John");
985
binder.Results[lastNameProperty] =
ModelBindingResult
.Success("Doe");
1014
binder.Results[nestedProperty] =
ModelBindingResult
.Success(null);
1033
var
result =
ModelBindingResult
.Failed();
1056
var
result =
ModelBindingResult
.Failed();
1080
var
result =
ModelBindingResult
.Failed();
1103
var
result =
ModelBindingResult
.Failed();
1144
var
result =
ModelBindingResult
.Success(new Simple { Name = "Hanna" });
1168
var
result =
ModelBindingResult
.Success(new List<string>() { "hi" });
1188
var
result =
ModelBindingResult
.Success(new DateTime(2001, 1, 1));
1212
var
result =
ModelBindingResult
.Success(new DateTime(1800, 1, 1));
1233
var
result =
ModelBindingResult
.Success(model: null);
1624
public Dictionary<ModelMetadata,
ModelBindingResult
> Results { get; } = new Dictionary<ModelMetadata,
ModelBindingResult
>();
1633
if (Results.TryGetValue(bindingContext.ModelMetadata, out
var
result))
1681
ModelBindingResult
result)
1690
ModelBindingResult
result)
ModelBinding\Binders\DateTimeModelBinderTest.cs (2)
87
Assert.Equal(
ModelBindingResult
.Failed(), bindingContext.Result);
102
Assert.Equal(
ModelBindingResult
.Failed(), bindingContext.Result);
ModelBinding\Binders\FloatingPointTypeModelBinderTestOfT.cs (1)
183
Assert.Equal(
ModelBindingResult
.Failed(), bindingContext.Result);
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (7)
113
ModelBindingResult
innerResult;
116
innerResult =
ModelBindingResult
.Success(model);
120
innerResult =
ModelBindingResult
.Failed();
235
return
ModelBindingResult
.Success(model);
237
return
ModelBindingResult
.Failed();
249
return
ModelBindingResult
.Success(model);
251
return
ModelBindingResult
.Failed();
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (1)
191
Assert.Equal(
ModelBindingResult
.Failed(), bindingContext.Result);
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (1)
140
Assert.Equal(
ModelBindingResult
.Failed(), bindingContext.Result);
ModelBinding\ModelBindingHelperTest.cs (5)
28
var binder = new StubModelBinder(
ModelBindingResult
.Failed());
132
var binder = new StubModelBinder(
ModelBindingResult
.Failed());
213
var binder = new StubModelBinder(
ModelBindingResult
.Failed());
461
var binder = new StubModelBinder(
ModelBindingResult
.Failed());
544
var binder = new StubModelBinder(
ModelBindingResult
.Failed());
ModelBinding\ModelBindingResultTest.cs (4)
15
var
result =
ModelBindingResult
.Success(model);
26
var
result =
ModelBindingResult
.Failed();
ModelBinding\ParameterBinderTest.cs (36)
66
var
modelBindingResult =
ModelBindingResult
.Failed();
69
var
result = await parameterBinder.BindModelAsync(
104
var
modelBindingResult =
ModelBindingResult
.Success(null);
107
var
result = await parameterBinder.BindModelAsync(
204
var
modelBindingResult =
ModelBindingResult
.Success(null);
242
var
modelBindingResult =
ModelBindingResult
.Success(123);
245
var
result = await parameterBinder.BindModelAsync(
283
var
modelBindingResult =
ModelBindingResult
.Success(123);
286
var
result = await parameterBinder.BindModelAsync(
319
var
modelBindingResult =
ModelBindingResult
.Success(model);
335
var
result = await parameterBinder.BindModelAsync(
374
var
modelBindingResult =
ModelBindingResult
.Success(model);
390
var
result = await parameterBinder.BindModelAsync(
429
var
modelBindingResult =
ModelBindingResult
.Success(model);
445
var
result = await parameterBinder.BindModelAsync(
483
var
modelBindingResult =
ModelBindingResult
.Success(model);
499
var
result = await parameterBinder.BindModelAsync(
555
var
modelBindingResult =
ModelBindingResult
.Success(new JsonPatchDocument());
559
var
result = await parameterBinder.BindModelAsync(
616
var
modelBindingResult =
ModelBindingResult
.Failed();
620
var
result = await parameterBinder.BindModelAsync(
684
var
modelBindingResult =
ModelBindingResult
.Success(null);
688
var
result = await parameterBinder.BindModelAsync(
727
private static IModelBinder CreateMockModelBinder(
ModelBindingResult
modelBinderResult)
ModelBinding\StubModelBinder.cs (6)
17
public StubModelBinder(
ModelBindingResult
result)
35
public StubModelBinder(Func<ModelBindingContext,
ModelBindingResult
> callback)
39
var
result = callback.Invoke(context);
45
public StubModelBinder(Func<ModelBindingContext, Task<
ModelBindingResult
>> callback)
49
var
result = await callback.Invoke(context);
64
Debug.Assert(bindingContext.Result ==
ModelBindingResult
.Failed());
Microsoft.AspNetCore.Mvc.IntegrationTests (459)
ActionParametersIntegrationTest.cs (16)
53
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
98
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
146
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
192
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
233
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
277
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
324
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
369
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
437
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
617
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
653
var
modelBindingResult = await parameterBinder.BindModelAsync(
686
var
modelBindingResult = await parameterBinder.BindModelAsync(
731
var
modelBindingResult = await parameterBinder.BindModelAsync(
784
var
modelBindingResult = await parameterBinder.BindModelAsync(
826
var
modelBindingResult = await parameterBinder.BindModelAsync(
871
var
modelBindingResult = await parameterBinder.BindModelAsync(
ArrayModelBinderIntegrationTest.cs (9)
32
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
76
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
116
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
156
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
191
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
236
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
277
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
318
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
355
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
BinderTypeBasedModelBinderIntegrationTest.cs (17)
35
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
69
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
106
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
169
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
220
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
257
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
296
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
322
Debug.Assert(bindingContext.Result ==
ModelBindingResult
.Failed());
336
bindingContext.Result =
ModelBindingResult
.Success(address);
347
Debug.Assert(bindingContext.Result ==
ModelBindingResult
.Failed());
361
bindingContext.Result =
ModelBindingResult
.Success(address);
371
Debug.Assert(bindingContext.Result ==
ModelBindingResult
.Failed());
379
bindingContext.Result =
ModelBindingResult
.Success(model);
389
Debug.Assert(bindingContext.Result ==
ModelBindingResult
.Failed());
391
bindingContext.Result =
ModelBindingResult
.Success(model: null);
401
Debug.Assert(bindingContext.Result ==
ModelBindingResult
.Failed());
403
bindingContext.Result =
ModelBindingResult
.Failed();
BindingSourceMetadataProviderIntegrationTest.cs (2)
46
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
99
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
BindPropertyIntegrationTest.cs (6)
42
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
69
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
96
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
125
var
result = await parameterBinder.BindModelAsync(
165
var
result = await parameterBinder.BindModelAsync(
284
var
result = await parameterBinder.BindModelAsync(
BodyValidationIntegrationTests.cs (19)
43
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
83
var
result = await argumentBinding.BindModelAsync(parameter, testContext);
124
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
170
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
209
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
249
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
288
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
330
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
382
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
423
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
470
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
534
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
576
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
630
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
675
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
726
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
782
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
836
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
882
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
ByteArrayModelBinderIntegrationTest.cs (3)
45
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
90
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
129
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
CancellationTokenModelBinderIntegrationTest.cs (3)
36
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
72
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
111
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
CollectionModelBinderIntegrationTest.cs (20)
38
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
86
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
122
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
154
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
194
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
234
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
267
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
305
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
364
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
415
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
467
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
510
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
561
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
611
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
668
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
708
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
951
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1025
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1148
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1197
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
ComplexRecordIntegrationTest.cs (75)
55
var
modelBindingResult = await parameterBinder.BindModelAsync(
105
var
modelBindingResult = await parameterBinder.BindModelAsync(
157
var
modelBindingResult = await parameterBinder.BindModelAsync(
211
var
modelBindingResult = await parameterBinder.BindModelAsync(
260
var
modelBindingResult = await parameterBinder.BindModelAsync(
309
var
modelBindingResult = await parameterBinder.BindModelAsync(
357
var
modelBindingResult = await parameterBinder.BindModelAsync(
409
var
modelBindingResult = await parameterBinder.BindModelAsync(
461
var
modelBindingResult = await parameterBinder.BindModelAsync(
514
var
modelBindingResult = await parameterBinder.BindModelAsync(
567
var
modelBindingResult = await parameterBinder.BindModelAsync(
621
var
modelBindingResult = await parameterBinder.BindModelAsync(
671
var
modelBindingResult = await parameterBinder.BindModelAsync(
728
var
modelBindingResult = await parameterBinder.BindModelAsync(
782
var
modelBindingResult = await parameterBinder.BindModelAsync(
837
var
modelBindingResult = await parameterBinder.BindModelAsync(
892
var
modelBindingResult = await parameterBinder.BindModelAsync(
939
var
modelBindingResult = await parameterBinder.BindModelAsync(
985
var
modelBindingResult = await parameterBinder.BindModelAsync(
1040
var
modelBindingResult = await parameterBinder.BindModelAsync(
1095
var
modelBindingResult = await parameterBinder.BindModelAsync(
1142
var
modelBindingResult = await parameterBinder.BindModelAsync(
1188
var
modelBindingResult = await parameterBinder.BindModelAsync(
1243
var
modelBindingResult = await parameterBinder.BindModelAsync(
1298
var
modelBindingResult = await parameterBinder.BindModelAsync(
1345
var
modelBindingResult = await parameterBinder.BindModelAsync(
1404
var
modelBindingResult = await parameterBinder.BindModelAsync(
1511
var
modelBindingResult = await parameterBinder.BindModelAsync(
1618
var
modelBindingResult = await parameterBinder.BindModelAsync(
1722
var
modelBindingResult = await parameterBinder.BindModelAsync(
1777
var
modelBindingResult = await parameterBinder.BindModelAsync(
1841
var
modelBindingResult = await parameterBinder.BindModelAsync(
1927
var
modelBindingResult = await parameterBinder.BindModelAsync(
1973
var
modelBindingResult = await parameterBinder.BindModelAsync(
2029
var
modelBindingResult = await parameterBinder.BindModelAsync(
2081
var
modelBindingResult = await parameterBinder.BindModelAsync(
2135
var
modelBindingResult = await parameterBinder.BindModelAsync(
2193
var
modelBindingResult = await parameterBinder.BindModelAsync(
2249
var
modelBindingResult = await parameterBinder.BindModelAsync(
2301
var
modelBindingResult = await parameterBinder.BindModelAsync(
2349
var
modelBindingResult = await parameterBinder.BindModelAsync(
2397
var
modelBindingResult = await parameterBinder.BindModelAsync(
2449
var
modelBindingResult = await parameterBinder.BindModelAsync(
2496
var
modelBindingResult = await parameterBinder.BindModelAsync(
2546
var
modelBindingResult = await parameterBinder.BindModelAsync(
2600
var
modelBindingResult = await parameterBinder.BindModelAsync(
2659
var
modelBindingResult = await parameterBinder.BindModelAsync(
2708
var
modelBindingResult = await parameterBinder.BindModelAsync(
2764
var
modelBindingResult = await parameterBinder.BindModelAsync(
2818
var
modelBindingResult = await parameterBinder.BindModelAsync(
2876
var
modelBindingResult = await parameterBinder.BindModelAsync(
2922
var
modelBindingResult = await parameterBinder.BindModelAsync(
2991
var
modelBindingResult = await parameterBinder.BindModelAsync(
3063
var
modelBindingResult = await parameterBinder.BindModelAsync(
3127
var
modelBindingResult = await parameterBinder.BindModelAsync(
3179
var
modelBindingResult = await parameterBinder.BindModelAsync(
3254
var
modelBindingResult = await parameterBinder.BindModelAsync(
3353
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
3461
var
modelBindingResult = await parameterBinder.BindModelAsync(
3503
var
modelBindingResult = await parameterBinder.BindModelAsync(
3546
var
modelBindingResult = await parameterBinder.BindModelAsync(
3589
var
modelBindingResult = await parameterBinder.BindModelAsync(
3640
var
modelBindingResult = await parameterBinder.BindModelAsync(
3686
var
modelBindingResult = await parameterBinder.BindModelAsync(
3738
var
modelBindingResult = await parameterBinder.BindModelAsync(
3781
var
modelBindingResult = await parameterBinder.BindModelAsync(
3826
var
modelBindingResult = await parameterBinder.BindModelAsync(
3869
var
modelBindingResult = await parameterBinder.BindModelAsync(
3913
var
modelBindingResult = await parameterBinder.BindModelAsync(
3958
var
modelBindingResult = await parameterBinder.BindModelAsync(
4002
var
modelBindingResult = await parameterBinder.BindModelAsync(
4043
var
modelBindingResult = await parameterBinder.BindModelAsync(
4086
var
modelBindingResult = await parameterBinder.BindModelAsync(
4131
var
modelBindingResult = await parameterBinder.BindModelAsync(
4176
var
modelBindingResult = await parameterBinder.BindModelAsync(
ComplexTypeIntegrationTestBase.cs (59)
92
var
modelBindingResult = await parameterBinder.BindModelAsync(
142
var
modelBindingResult = await parameterBinder.BindModelAsync(
194
var
modelBindingResult = await parameterBinder.BindModelAsync(
243
var
modelBindingResult = await parameterBinder.BindModelAsync(
292
var
modelBindingResult = await parameterBinder.BindModelAsync(
350
var
modelBindingResult = await parameterBinder.BindModelAsync(
402
var
modelBindingResult = await parameterBinder.BindModelAsync(
454
var
modelBindingResult = await parameterBinder.BindModelAsync(
517
var
modelBindingResult = await parameterBinder.BindModelAsync(
570
var
modelBindingResult = await parameterBinder.BindModelAsync(
624
var
modelBindingResult = await parameterBinder.BindModelAsync(
674
var
modelBindingResult = await parameterBinder.BindModelAsync(
731
var
modelBindingResult = await parameterBinder.BindModelAsync(
790
var
modelBindingResult = await parameterBinder.BindModelAsync(
845
var
modelBindingResult = await parameterBinder.BindModelAsync(
900
var
modelBindingResult = await parameterBinder.BindModelAsync(
947
var
modelBindingResult = await parameterBinder.BindModelAsync(
998
var
modelBindingResult = await parameterBinder.BindModelAsync(
1053
var
modelBindingResult = await parameterBinder.BindModelAsync(
1108
var
modelBindingResult = await parameterBinder.BindModelAsync(
1155
var
modelBindingResult = await parameterBinder.BindModelAsync(
1206
var
modelBindingResult = await parameterBinder.BindModelAsync(
1261
var
modelBindingResult = await parameterBinder.BindModelAsync(
1316
var
modelBindingResult = await parameterBinder.BindModelAsync(
1363
var
modelBindingResult = await parameterBinder.BindModelAsync(
1440
var
modelBindingResult = await parameterBinder.BindModelAsync(
1547
var
modelBindingResult = await parameterBinder.BindModelAsync(
1654
var
modelBindingResult = await parameterBinder.BindModelAsync(
1763
var
modelBindingResult = await parameterBinder.BindModelAsync(
1818
var
modelBindingResult = await parameterBinder.BindModelAsync(
1873
var
modelBindingResult = await parameterBinder.BindModelAsync(
1922
var
modelBindingResult = await parameterBinder.BindModelAsync(
1981
var
modelBindingResult = await parameterBinder.BindModelAsync(
2074
var
modelBindingResult = await parameterBinder.BindModelAsync(
2127
var
modelBindingResult = await parameterBinder.BindModelAsync(
2182
var
modelBindingResult = await parameterBinder.BindModelAsync(
2243
var
modelBindingResult = await parameterBinder.BindModelAsync(
2297
var
modelBindingResult = await parameterBinder.BindModelAsync(
2355
var
modelBindingResult = await parameterBinder.BindModelAsync(
2415
var
modelBindingResult = await parameterBinder.BindModelAsync(
2467
var
modelBindingResult = await parameterBinder.BindModelAsync(
2515
var
modelBindingResult = await parameterBinder.BindModelAsync(
2567
var
modelBindingResult = await parameterBinder.BindModelAsync(
2619
var
modelBindingResult = await parameterBinder.BindModelAsync(
2666
var
modelBindingResult = await parameterBinder.BindModelAsync(
2719
var
modelBindingResult = await parameterBinder.BindModelAsync(
2773
var
modelBindingResult = await parameterBinder.BindModelAsync(
2838
var
modelBindingResult = await parameterBinder.BindModelAsync(
2887
var
modelBindingResult = await parameterBinder.BindModelAsync(
2955
var
modelBindingResult = await parameterBinder.BindModelAsync(
3009
var
modelBindingResult = await parameterBinder.BindModelAsync(
3069
var
modelBindingResult = await parameterBinder.BindModelAsync(
3126
var
modelBindingResult = await parameterBinder.BindModelAsync(
3199
var
modelBindingResult = await parameterBinder.BindModelAsync(
3278
var
modelBindingResult = await parameterBinder.BindModelAsync(
3349
var
modelBindingResult = await parameterBinder.BindModelAsync(
3401
var
modelBindingResult = await parameterBinder.BindModelAsync(
3483
var
modelBindingResult = await parameterBinder.BindModelAsync(
3598
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
DictionaryModelBinderIntegrationTest.cs (30)
36
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
76
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
114
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
167
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
204
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
348
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
385
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
416
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
452
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
521
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
559
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
597
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
632
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
667
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
719
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
758
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
798
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
838
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
874
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
922
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
956
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
990
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1029
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1068
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1179
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1250
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1304
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1379
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1415
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1457
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
ExcludeBindingMetadataProviderIntegrationTest.cs (2)
45
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
104
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
FormCollectionModelBindingIntegrationTest.cs (3)
49
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
99
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
139
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
FormFileModelBindingIntegrationTest.cs (22)
49
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
96
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
147
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
206
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
293
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
358
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
424
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
489
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
534
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
578
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
632
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
678
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
718
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
778
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
843
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
903
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
943
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1005
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1060
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1111
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1156
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1220
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
GenericModelBinderIntegrationTest.cs (16)
40
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
78
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
117
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
170
Debug.Assert(bindingContext.Result ==
ModelBindingResult
.Failed());
181
bindingContext.Result =
ModelBindingResult
.Success(new Address());
208
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
242
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
277
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
322
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
367
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
402
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
446
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
490
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
526
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
574
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
622
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
HeaderModelBinderIntegrationTest.cs (7)
47
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
86
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
128
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
174
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
221
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
284
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
335
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
JQueryFormatModelBindingIntegrationTest.cs (2)
38
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
76
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
KeyValuePairModelBinderIntegrationTest.cs (13)
32
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
70
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
120
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
157
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
207
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
250
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
290
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
330
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
368
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
413
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
454
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
495
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
531
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
ModelPrefixSelectionIntegrationTest.cs (5)
47
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
96
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
135
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
184
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
230
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
NullableReferenceTypeIntegrationTest.cs (4)
36
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
84
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
123
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
175
var
modelBindingResult = await parameterBinder.BindModelAsync(
ParameterBinderExtensions.cs (2)
16
public static Task<
ModelBindingResult
> BindModelAsync(
55
public static async Task<
ModelBindingResult
> BindModelAsync(
ServicesModelBinderIntegrationTest.cs (10)
35
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
72
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
108
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
144
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
217
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
250
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
286
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
319
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
365
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
403
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
SimpleTypeModelBinderIntegrationTest.cs (18)
42
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
86
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
131
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
175
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
208
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
252
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
301
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
337
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
381
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
441
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
490
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
545
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
587
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
625
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
630
Assert.Equal(
ModelBindingResult
.Failed(), modelBindingResult);
679
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
725
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
769
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
SuccessfulModelBinder.cs (1)
16
bindingContext.Result =
ModelBindingResult
.Success(model);
ValidationIntegrationTests.cs (48)
182
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
219
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
270
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
308
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
361
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
400
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
453
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
492
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
540
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
578
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
698
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
735
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
786
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
823
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
863
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
921
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
958
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1028
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1065
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1116
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1153
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1193
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1233
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1273
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1364
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1413
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1452
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1482
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1515
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1588
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1628
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1678
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1749
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1804
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1847
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1892
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1939
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1993
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
2042
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext, modelMetadataProvider, modelMetadata);
2094
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext, modelMetadataProvider, modelMetadata);
2164
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext, modelMetadataProvider, modelMetadata);
2226
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
2273
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
2330
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext, modelMetadataProvider, modelMetadata);
2384
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext, modelMetadataProvider, modelMetadata);
2436
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
2488
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext, modelMetadataProvider, modelMetadata);
2538
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext, modelMetadataProvider, modelMetadata);
ValidationWithRecordIntegrationTests.cs (47)
170
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
207
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
251
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
289
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
333
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
372
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
418
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
457
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
499
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
537
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
581
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
618
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
662
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
699
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
739
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
790
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
827
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
890
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
927
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
974
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1011
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1051
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1085
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1125
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1208
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1257
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1296
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1326
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1396
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1436
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1484
var
result = await parameterBinder.BindModelAsync(parameter, testContext);
1552
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1607
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1650
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1695
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1742
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1788
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
1833
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext, modelMetadataProvider, modelMetadata);
1885
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext, modelMetadataProvider, modelMetadata);
1955
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext, modelMetadataProvider, modelMetadata);
2017
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
2064
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
2121
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext, modelMetadataProvider, modelMetadata);
2172
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext, modelMetadataProvider, modelMetadata);
2224
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
2274
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext, modelMetadataProvider, modelMetadata);
2441
var
modelBindingResult = await parameterBinder.BindModelAsync(parameter, testContext);
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
Infrastructure\PageBinderFactoryTest.cs (5)
821
public override ValueTask<
ModelBindingResult
> BindModelAsync(
834
return new ValueTask<
ModelBindingResult
>(
ModelBindingResult
.Success(result));
837
return new ValueTask<
ModelBindingResult
>(
ModelBindingResult
.Failed());
RazorPagesWebSite (1)
PolymorphicModelBinder.cs (1)
26
bindingContext.Result =
ModelBindingResult
.Success(model);