4 writes to AttemptedValue
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\ModelStateDictionary.cs (3)
478
modelState.
AttemptedValue
= attemptedValue;
855
AttemptedValue
= entry.AttemptedValue;
869
AttemptedValue
= null;
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelStateDictionaryTest.cs (1)
267
entry.
AttemptedValue
= "attempted-value";
431 references to AttemptedValue
Microsoft.AspNetCore.Mvc.Abstractions (4)
ModelBinding\ModelStateDictionary.cs (4)
296
errorMessage = messageProvider.NonPropertyAttemptedValueIsInvalidAccessor(entry.
AttemptedValue
!);
300
errorMessage = messageProvider.AttemptedValueIsInvalidAccessor(entry.
AttemptedValue
!, name);
463
/// Sets the of <see cref="ModelStateEntry.RawValue"/> and <see cref="ModelStateEntry.
AttemptedValue
"/> for
855
AttemptedValue = entry.
AttemptedValue
;
Microsoft.AspNetCore.Mvc.Abstractions.Test (16)
ModelBinding\ModelStateDictionaryTest.cs (16)
280
Assert.Equal(entry.
AttemptedValue
, actual.
AttemptedValue
);
567
Assert.Equal("AttemptedValue1", item.
AttemptedValue
);
571
Assert.Equal("AttemptedValue2", item.
AttemptedValue
);
599
Assert.Null(item.
AttemptedValue
);
604
Assert.Equal("AttemptedValue2", item.
AttemptedValue
);
640
Assert.Equal("some value", modelState.
AttemptedValue
);
661
Assert.Equal("some value", modelState.
AttemptedValue
);
1417
Assert.Null(entry.Value.
AttemptedValue
);
1425
Assert.Null(entry.Value.
AttemptedValue
);
1433
Assert.Equal("value", entry.Value.
AttemptedValue
);
1441
Assert.Null(entry.Value.
AttemptedValue
);
1539
Assert.Null(value.
AttemptedValue
);
1546
Assert.Null(value.
AttemptedValue
);
1553
Assert.Equal("value", value.
AttemptedValue
);
1560
Assert.Null(value.
AttemptedValue
);
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (1)
327
Assert.Equal("32,000", entry.Value.
AttemptedValue
);
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (1)
253
Assert.Equal("32,000", entry.Value.
AttemptedValue
);
Microsoft.AspNetCore.Mvc.IntegrationTests (406)
ActionParametersIntegrationTest.cs (6)
69
Assert.Equal("SomeStreet", modelState[key].
AttemptedValue
);
118
Assert.Equal("SomeStreet", state.
AttemptedValue
);
163
Assert.Equal("SomeStreet", modelState[key].
AttemptedValue
);
249
Assert.Equal("SomeStreet", modelState[key].
AttemptedValue
);
297
Assert.Equal("SomeStreet", state.
AttemptedValue
);
340
Assert.Equal("SomeStreet", modelState[key].
AttemptedValue
);
ArrayModelBinderIntegrationTest.cs (12)
45
Assert.Equal("10", entry.
AttemptedValue
);
49
Assert.Equal("11", entry.
AttemptedValue
);
89
Assert.Equal("10", entry.
AttemptedValue
);
93
Assert.Equal("11", entry.
AttemptedValue
);
129
Assert.Equal("10", entry.
AttemptedValue
);
133
Assert.Equal("11", entry.
AttemptedValue
);
205
Assert.Equal("bill", entry.
AttemptedValue
);
209
Assert.Equal("lang", entry.
AttemptedValue
);
250
Assert.Equal("bill", entry.
AttemptedValue
);
254
Assert.Equal("lang", entry.
AttemptedValue
);
291
Assert.Equal("bill", entry.
AttemptedValue
);
295
Assert.Equal("lang", entry.
AttemptedValue
);
BodyValidationIntegrationTests.cs (2)
479
Assert.Null(entry.Value!.
AttemptedValue
);
589
Assert.Null(state.
AttemptedValue
);
ByteArrayModelBinderIntegrationTest.cs (2)
65
Assert.Equal(value, entry.Value.
AttemptedValue
);
145
Assert.Equal(value, entry.Value.
AttemptedValue
);
CollectionModelBinderIntegrationTest.cs (14)
51
Assert.Equal("10", entry.
AttemptedValue
);
55
Assert.Equal("11", entry.
AttemptedValue
);
321
Assert.Equal("10", entry.
AttemptedValue
);
325
Assert.Equal("11", entry.
AttemptedValue
);
380
Assert.Equal("10", entry.
AttemptedValue
);
384
Assert.Equal("11", entry.
AttemptedValue
);
431
Assert.Equal("10", entry.
AttemptedValue
);
435
Assert.Equal("11", entry.
AttemptedValue
);
481
Assert.Equal("10", entry.
AttemptedValue
);
486
Assert.Equal("11", entry.
AttemptedValue
);
526
Assert.Equal("10", entry.
AttemptedValue
);
530
Assert.Equal("11", entry.
AttemptedValue
);
621
Assert.Equal("Street1", entry.
AttemptedValue
);
625
Assert.Equal("Street2", entry.
AttemptedValue
);
ComplexRecordIntegrationTest.cs (96)
77
Assert.Equal("bill", entry.
AttemptedValue
);
127
Assert.Equal("bill", entry.
AttemptedValue
);
178
Assert.Equal("bill", entry.
AttemptedValue
);
232
Assert.Equal("bill", entry.
AttemptedValue
);
281
Assert.Equal("10", entry.
AttemptedValue
);
378
Assert.Equal("bill", entry.
AttemptedValue
);
382
Assert.Equal(ByteArrayEncoded, entry.
AttemptedValue
);
430
Assert.Equal("bill", entry.
AttemptedValue
);
434
Assert.Equal(ByteArrayEncoded, entry.
AttemptedValue
);
482
Assert.Equal("bill", entry.
AttemptedValue
);
535
Assert.Equal("bill", entry.
AttemptedValue
);
539
Assert.Null(entry.
AttemptedValue
); // FormFile entries for body don't include original text.
588
Assert.Equal("bill", entry.
AttemptedValue
);
592
Assert.Null(entry.
AttemptedValue
); // FormFile entries don't include the model.
643
Assert.Equal("bill", entry.
AttemptedValue
);
700
Assert.Equal("10", entry.
AttemptedValue
);
802
Assert.Equal("bill", entry.
AttemptedValue
);
806
Assert.Equal("10", entry.
AttemptedValue
);
810
Assert.Equal("11", entry.
AttemptedValue
);
857
Assert.Equal("bill", entry.
AttemptedValue
);
861
Assert.Equal("10", entry.
AttemptedValue
);
865
Assert.Equal("11", entry.
AttemptedValue
);
912
Assert.Equal("bill", entry.
AttemptedValue
);
1005
Assert.Equal("bill", entry.
AttemptedValue
);
1009
Assert.Equal("10", entry.
AttemptedValue
);
1013
Assert.Equal("11", entry.
AttemptedValue
);
1060
Assert.Equal("bill", entry.
AttemptedValue
);
1064
Assert.Equal("10", entry.
AttemptedValue
);
1068
Assert.Equal("11", entry.
AttemptedValue
);
1115
Assert.Equal("bill", entry.
AttemptedValue
);
1208
Assert.Equal("bill", entry.
AttemptedValue
);
1212
Assert.Equal("key0", entry.
AttemptedValue
);
1216
Assert.Equal("10", entry.
AttemptedValue
);
1263
Assert.Equal("bill", entry.
AttemptedValue
);
1267
Assert.Equal("key0", entry.
AttemptedValue
);
1271
Assert.Equal("10", entry.
AttemptedValue
);
1318
Assert.Equal("bill", entry.
AttemptedValue
);
1454
Assert.Equal("Accord", entry.
AttemptedValue
);
1458
Assert.Equal("camera_specs", entry.
AttemptedValue
);
1462
Assert.Equal("camera_spec1.txt", entry.
AttemptedValue
);
1466
Assert.Equal("camera_spec2.txt", entry.
AttemptedValue
);
1470
Assert.Equal("tyre_specs", entry.
AttemptedValue
);
1474
Assert.Equal("tyre_spec1.txt", entry.
AttemptedValue
);
1478
Assert.Equal("tyre_spec2.txt", entry.
AttemptedValue
);
1561
Assert.Equal("Accord", entry.
AttemptedValue
);
1565
Assert.Equal("camera_specs", entry.
AttemptedValue
);
1569
Assert.Equal("camera_spec1.txt", entry.
AttemptedValue
);
1573
Assert.Equal("camera_spec2.txt", entry.
AttemptedValue
);
1577
Assert.Equal("tyre_specs", entry.
AttemptedValue
);
1581
Assert.Equal("tyre_spec1.txt", entry.
AttemptedValue
);
1585
Assert.Equal("tyre_spec2.txt", entry.
AttemptedValue
);
1668
Assert.Equal("Accord", entry.
AttemptedValue
);
1672
Assert.Equal("camera_specs", entry.
AttemptedValue
);
1676
Assert.Equal("camera_spec1.txt", entry.
AttemptedValue
);
1680
Assert.Equal("camera_spec2.txt", entry.
AttemptedValue
);
1684
Assert.Equal("tyre_specs", entry.
AttemptedValue
);
1688
Assert.Equal("tyre_spec1.txt", entry.
AttemptedValue
);
1692
Assert.Equal("tyre_spec2.txt", entry.
AttemptedValue
);
1742
Assert.Equal("bill", entry.
AttemptedValue
);
1746
Assert.Equal("key0", entry.
AttemptedValue
);
1750
Assert.Equal("10", entry.
AttemptedValue
);
1797
Assert.Equal("bill", entry.
AttemptedValue
);
1801
Assert.Equal("key0", entry.
AttemptedValue
);
1805
Assert.Equal("10", entry.
AttemptedValue
);
1873
Assert.Equal("Accord", entry.
AttemptedValue
);
1877
Assert.Equal("camera_specs", entry.
AttemptedValue
);
1881
Assert.Equal("spec1", entry.
AttemptedValue
);
1885
Assert.Equal("spec1.txt", entry.
AttemptedValue
);
1889
Assert.Equal("spec2", entry.
AttemptedValue
);
1893
Assert.Equal("spec2.txt", entry.
AttemptedValue
);
1993
Assert.Null(entry.
AttemptedValue
);
2049
Assert.Null(entry.
AttemptedValue
);
2103
Assert.Equal("123", entry.
AttemptedValue
);
2107
Assert.Null(entry.
AttemptedValue
);
2157
Assert.Equal("123", entry.
AttemptedValue
);
2161
Assert.Null(entry.
AttemptedValue
);
2215
Assert.Equal("123", entry.
AttemptedValue
);
2219
Assert.Null(entry.
AttemptedValue
);
2269
Assert.Null(entry.
AttemptedValue
);
2321
Assert.Null(entry.
AttemptedValue
);
2369
Assert.Equal("abc", entry.
AttemptedValue
);
2417
Assert.Null(entry.
AttemptedValue
);
2469
Assert.Null(entry.
AttemptedValue
);
2516
Assert.Equal("123", entry.
AttemptedValue
);
2566
Assert.Equal(string.Empty, entry.
AttemptedValue
);
2617
Assert.Equal(string.Empty, entry.Value.
AttemptedValue
);
2947
Assert.Equal("1", entry.
AttemptedValue
);
2951
Assert.Equal("location1", entry.
AttemptedValue
);
2955
Assert.Equal("98052", entry.
AttemptedValue
);
2959
Assert.Equal("10,20", entry.
AttemptedValue
);
3014
Assert.Null(state.Value.
AttemptedValue
);
3087
Assert.Equal("1,000.00", kvp.Value.
AttemptedValue
);
3095
Assert.Equal("2000", kvp.Value.
AttemptedValue
);
3150
Assert.Null(state.Value.
AttemptedValue
);
3212
Assert.Null(kvp.Value.
AttemptedValue
);
3219
Assert.Null(kvp.Value.
AttemptedValue
);
ComplexTypeIntegrationTestBase.cs (96)
114
Assert.Equal("bill", entry.
AttemptedValue
);
164
Assert.Equal("bill", entry.
AttemptedValue
);
215
Assert.Equal("bill", entry.
AttemptedValue
);
264
Assert.Equal("10", entry.
AttemptedValue
);
371
Assert.Equal("bill", entry.
AttemptedValue
);
375
Assert.Equal(ByteArrayEncoded, entry.
AttemptedValue
);
423
Assert.Equal("bill", entry.
AttemptedValue
);
427
Assert.Equal(ByteArrayEncoded, entry.
AttemptedValue
);
475
Assert.Equal("bill", entry.
AttemptedValue
);
538
Assert.Equal("bill", entry.
AttemptedValue
);
542
Assert.Null(entry.
AttemptedValue
); // FormFile entries for body don't include original text.
591
Assert.Equal("bill", entry.
AttemptedValue
);
595
Assert.Null(entry.
AttemptedValue
); // FormFile entries don't include the model.
646
Assert.Equal("bill", entry.
AttemptedValue
);
703
Assert.Equal("10", entry.
AttemptedValue
);
810
Assert.Equal("bill", entry.
AttemptedValue
);
814
Assert.Equal("10", entry.
AttemptedValue
);
818
Assert.Equal("11", entry.
AttemptedValue
);
865
Assert.Equal("bill", entry.
AttemptedValue
);
869
Assert.Equal("10", entry.
AttemptedValue
);
873
Assert.Equal("11", entry.
AttemptedValue
);
920
Assert.Equal("bill", entry.
AttemptedValue
);
1018
Assert.Equal("bill", entry.
AttemptedValue
);
1022
Assert.Equal("10", entry.
AttemptedValue
);
1026
Assert.Equal("11", entry.
AttemptedValue
);
1073
Assert.Equal("bill", entry.
AttemptedValue
);
1077
Assert.Equal("10", entry.
AttemptedValue
);
1081
Assert.Equal("11", entry.
AttemptedValue
);
1128
Assert.Equal("bill", entry.
AttemptedValue
);
1226
Assert.Equal("bill", entry.
AttemptedValue
);
1230
Assert.Equal("key0", entry.
AttemptedValue
);
1234
Assert.Equal("10", entry.
AttemptedValue
);
1281
Assert.Equal("bill", entry.
AttemptedValue
);
1285
Assert.Equal("key0", entry.
AttemptedValue
);
1289
Assert.Equal("10", entry.
AttemptedValue
);
1336
Assert.Equal("bill", entry.
AttemptedValue
);
1490
Assert.Equal("Accord", entry.
AttemptedValue
);
1494
Assert.Equal("camera_specs", entry.
AttemptedValue
);
1498
Assert.Equal("camera_spec1.txt", entry.
AttemptedValue
);
1502
Assert.Equal("camera_spec2.txt", entry.
AttemptedValue
);
1506
Assert.Equal("tyre_specs", entry.
AttemptedValue
);
1510
Assert.Equal("tyre_spec1.txt", entry.
AttemptedValue
);
1514
Assert.Equal("tyre_spec2.txt", entry.
AttemptedValue
);
1597
Assert.Equal("Accord", entry.
AttemptedValue
);
1601
Assert.Equal("camera_specs", entry.
AttemptedValue
);
1605
Assert.Equal("camera_spec1.txt", entry.
AttemptedValue
);
1609
Assert.Equal("camera_spec2.txt", entry.
AttemptedValue
);
1613
Assert.Equal("tyre_specs", entry.
AttemptedValue
);
1617
Assert.Equal("tyre_spec1.txt", entry.
AttemptedValue
);
1621
Assert.Equal("tyre_spec2.txt", entry.
AttemptedValue
);
1704
Assert.Equal("Accord", entry.
AttemptedValue
);
1708
Assert.Equal("camera_specs", entry.
AttemptedValue
);
1712
Assert.Equal("camera_spec1.txt", entry.
AttemptedValue
);
1716
Assert.Equal("camera_spec2.txt", entry.
AttemptedValue
);
1720
Assert.Equal("tyre_specs", entry.
AttemptedValue
);
1724
Assert.Equal("tyre_spec1.txt", entry.
AttemptedValue
);
1728
Assert.Equal("tyre_spec2.txt", entry.
AttemptedValue
);
1783
Assert.Equal("bill", entry.
AttemptedValue
);
1787
Assert.Equal("key0", entry.
AttemptedValue
);
1791
Assert.Equal("10", entry.
AttemptedValue
);
1838
Assert.Equal("bill", entry.
AttemptedValue
);
1842
Assert.Equal("key0", entry.
AttemptedValue
);
1846
Assert.Equal("10", entry.
AttemptedValue
);
1892
Assert.Equal("bill", entry.
AttemptedValue
);
2013
Assert.Equal("Accord", entry.
AttemptedValue
);
2017
Assert.Equal("camera_specs", entry.
AttemptedValue
);
2021
Assert.Equal("spec1", entry.
AttemptedValue
);
2025
Assert.Equal("spec1.txt", entry.
AttemptedValue
);
2029
Assert.Equal("spec2", entry.
AttemptedValue
);
2033
Assert.Equal("spec2.txt", entry.
AttemptedValue
);
2147
Assert.Null(entry.
AttemptedValue
);
2202
Assert.Null(entry.
AttemptedValue
);
2265
Assert.Equal("123", entry.
AttemptedValue
);
2269
Assert.Null(entry.
AttemptedValue
);
2319
Assert.Equal("123", entry.
AttemptedValue
);
2323
Assert.Null(entry.
AttemptedValue
);
2377
Assert.Equal("123", entry.
AttemptedValue
);
2381
Assert.Null(entry.
AttemptedValue
);
2435
Assert.Null(entry.
AttemptedValue
);
2487
Assert.Null(entry.
AttemptedValue
);
2535
Assert.Equal("abc", entry.
AttemptedValue
);
2587
Assert.Null(entry.
AttemptedValue
);
2639
Assert.Null(entry.
AttemptedValue
);
2686
Assert.Equal("123", entry.
AttemptedValue
);
2739
Assert.Equal(string.Empty, entry.
AttemptedValue
);
2790
Assert.Equal(string.Empty, entry.Value.
AttemptedValue
);
3151
Assert.Equal("1", entry.
AttemptedValue
);
3155
Assert.Equal("location1", entry.
AttemptedValue
);
3159
Assert.Equal("98052", entry.
AttemptedValue
);
3163
Assert.Equal("10,20", entry.
AttemptedValue
);
3222
Assert.Null(state.Value.
AttemptedValue
);
3302
Assert.Equal("1,000.00", kvp.Value.
AttemptedValue
);
3310
Assert.Equal("2000", kvp.Value.
AttemptedValue
);
3372
Assert.Null(state.Value.
AttemptedValue
);
3434
Assert.Null(kvp.Value.
AttemptedValue
);
3441
Assert.Null(kvp.Value.
AttemptedValue
);
DictionaryModelBinderIntegrationTest.cs (5)
49
Assert.Equal("key0", entry.
AttemptedValue
);
53
Assert.Equal("10", entry.
AttemptedValue
);
90
Assert.Equal("10", entry.
AttemptedValue
);
128
Assert.Equal("key0", entry.
AttemptedValue
);
133
Assert.Equal("10", entry.
AttemptedValue
);
FormFileModelBindingIntegrationTest.cs (6)
513
Assert.Null(modelStateEntry.
AttemptedValue
);
602
Assert.Null(modelStateEntry.
AttemptedValue
);
651
Assert.Null(entry.Value.
AttemptedValue
);
738
Assert.Equal("Accord", entry.
AttemptedValue
);
813
Assert.Equal("Accord", entry.
AttemptedValue
);
1025
Assert.Equal("Accord", entry.
AttemptedValue
);
GenericModelBinderIntegrationTest.cs (14)
293
Assert.Equal("key0", entry.
AttemptedValue
);
297
Assert.Equal("10", entry.
AttemptedValue
);
338
Assert.Equal("key0", entry.
AttemptedValue
);
342
Assert.Equal("10", entry.
AttemptedValue
);
417
Assert.Equal("key0", entry.
AttemptedValue
);
421
Assert.Equal("10", entry.
AttemptedValue
);
461
Assert.Equal("key0", entry.
AttemptedValue
);
465
Assert.Equal("10", entry.
AttemptedValue
);
541
Assert.Equal("key0", entry.
AttemptedValue
);
545
Assert.Equal("10", entry.
AttemptedValue
);
549
Assert.Equal("11", entry.
AttemptedValue
);
589
Assert.Equal("key0", entry.
AttemptedValue
);
593
Assert.Equal("10", entry.
AttemptedValue
);
597
Assert.Equal("11", entry.
AttemptedValue
);
HeaderModelBinderIntegrationTest.cs (13)
105
Assert.Equal("someValue", entry.Value.
AttemptedValue
);
147
Assert.Equal("someValue", entry.Value.
AttemptedValue
);
194
Assert.Equal("someValue", modelStateEntry.
AttemptedValue
);
241
Assert.Equal("someValue", modelStateEntry.
AttemptedValue
);
301
Assert.Equal(expectedAttemptedValue, entry.Value.
AttemptedValue
);
367
Assert.Equal("first,second", entry.
AttemptedValue
);
376
Assert.Equal("10.51,45.44", entry.
AttemptedValue
);
385
Assert.Equal("10", entry.
AttemptedValue
);
394
Assert.Equal("Sedan,Coupe", entry.
AttemptedValue
);
403
Assert.Equal("10", entry.
AttemptedValue
);
412
Assert.Equal("someValue", entry.
AttemptedValue
);
421
Assert.Equal("300", entry.
AttemptedValue
);
430
Assert.Equal("one, two, three", entry.
AttemptedValue
);
KeyValuePairModelBinderIntegrationTest.cs (19)
45
Assert.Equal("key0", entry.
AttemptedValue
);
49
Assert.Equal("10", entry.
AttemptedValue
);
86
Assert.Equal("10", entry.
AttemptedValue
);
136
Assert.Equal("10", entry.
AttemptedValue
);
168
Assert.Equal("10", entry.
AttemptedValue
);
218
Assert.Equal("10", entry.
AttemptedValue
);
263
Assert.Equal("key0", entry.
AttemptedValue
);
267
Assert.Equal("10", entry.
AttemptedValue
);
303
Assert.Equal("key0", entry.
AttemptedValue
);
307
Assert.Equal("10", entry.
AttemptedValue
);
382
Assert.Equal("key0", entry.
AttemptedValue
);
386
Assert.Equal("10", entry.
AttemptedValue
);
427
Assert.Equal("key0", entry.
AttemptedValue
);
431
Assert.Equal("10", entry.
AttemptedValue
);
468
Assert.Equal("key0", entry.
AttemptedValue
);
472
Assert.Equal("10", entry.
AttemptedValue
);
544
Assert.Equal("key1", entry.
AttemptedValue
);
548
Assert.Equal("value1", entry.
AttemptedValue
);
552
Assert.Equal("value2", entry.
AttemptedValue
);
SimpleTypeModelBinderIntegrationTest.cs (14)
60
Assert.Equal("1", modelState[key].
AttemptedValue
);
104
Assert.Equal("1", modelState[key].
AttemptedValue
);
148
Assert.Equal("someValue", modelState[key].
AttemptedValue
);
225
Assert.Equal("32,000.99", modelState[key].
AttemptedValue
);
269
Assert.Equal("2020-02-01", modelState[key].
AttemptedValue
);
354
Assert.Equal("someValue,otherValue", modelState[key].
AttemptedValue
);
401
Assert.Equal("abcd", entry.
AttemptedValue
);
461
Assert.Equal("abcd", entry.
AttemptedValue
);
504
Assert.Equal("", modelState[key].
AttemptedValue
);
558
Assert.Equal(string.Empty, modelState[key].
AttemptedValue
);
601
Assert.Equal(string.Empty, modelState[key].
AttemptedValue
);
701
Assert.Equal("line 1,line 2", entry.
AttemptedValue
);
743
Assert.Equal("someValue", modelState[key].
AttemptedValue
);
787
Assert.Equal("someValue", modelState[key].
AttemptedValue
);
TryUpdateModelIntegrationTest.cs (24)
54
Assert.Equal("SomeStreet", state.
AttemptedValue
);
88
Assert.Equal("SomeStreet", state.
AttemptedValue
);
198
Assert.Equal("SomeStreet", state.
AttemptedValue
);
239
Assert.Equal("SomeStreet", state.
AttemptedValue
);
280
Assert.Equal("SomeStreet", state.
AttemptedValue
);
341
Assert.Equal("SomeStreet", state.
AttemptedValue
);
378
Assert.Equal("SomeStreet", state.
AttemptedValue
);
407
Assert.Equal("SomeStreet", state.
AttemptedValue
);
445
Assert.Equal("SomeStreet", state.
AttemptedValue
);
493
Assert.Equal("SomeStreet", state.
AttemptedValue
);
661
Assert.Equal("SomeStreet", state.
AttemptedValue
);
695
Assert.Equal("SomeStreet", state.
AttemptedValue
);
798
Assert.Equal("SomeStreet", state.
AttemptedValue
);
834
Assert.Equal("SomeStreet", state.
AttemptedValue
);
875
Assert.Equal("SomeStreet", state.
AttemptedValue
);
926
Assert.Equal("SomeStreet", state.
AttemptedValue
);
962
Assert.Equal("SomeStreet", state.
AttemptedValue
);
1010
Assert.Equal("SomeStreet", state.
AttemptedValue
);
1082
Assert.Null(modelStateEntry.
AttemptedValue
);
1131
Assert.Equal("SomeStreet", state.
AttemptedValue
);
1202
Assert.Equal("98007", state.
AttemptedValue
);
1209
Assert.Equal("SomeStreet", state.
AttemptedValue
);
1257
Assert.Equal("SomeStreet", state.
AttemptedValue
);
1266
Assert.Equal("98007", state.
AttemptedValue
);
ValidationIntegrationTests.cs (41)
195
Assert.Equal("bill", entry.
AttemptedValue
);
233
Assert.Null(entry.
AttemptedValue
);
284
Assert.Equal("bill", entry.
AttemptedValue
);
322
Assert.Null(entry.
AttemptedValue
);
375
Assert.Equal("bill", entry.
AttemptedValue
);
416
Assert.Null(entry.
AttemptedValue
);
467
Assert.Equal("17", entry.
AttemptedValue
);
506
Assert.Null(entry.
AttemptedValue
);
553
Assert.Equal("17", entry.
AttemptedValue
);
594
Assert.Null(entry.
AttemptedValue
);
711
Assert.Equal("bill", entry.
AttemptedValue
);
748
Assert.Equal("billybob", entry.
AttemptedValue
);
799
Assert.Equal("bill", entry.
AttemptedValue
);
836
Assert.Equal("billybob", entry.
AttemptedValue
);
934
Assert.Equal("bill", entry.
AttemptedValue
);
971
Assert.Equal("billybob", entry.
AttemptedValue
);
976
Assert.Null(entry.
AttemptedValue
);
1041
Assert.Equal("bill", entry.
AttemptedValue
);
1078
Assert.Equal("billybob", entry.
AttemptedValue
);
1083
Assert.Null(entry.
AttemptedValue
);
1129
Assert.Equal("bill", entry.
AttemptedValue
);
1166
Assert.Equal("billybob", entry.
AttemptedValue
);
1246
Assert.Equal("bill", entry.
AttemptedValue
);
1286
Assert.Equal("-123", entry.
AttemptedValue
);
1756
Assert.Equal("US", entry.
AttemptedValue
);
1761
Assert.Equal("45", entry.
AttemptedValue
);
1766
Assert.Equal("46", entry.
AttemptedValue
);
2056
Assert.Equal("1", entry.
AttemptedValue
);
2061
Assert.Equal("2", entry.
AttemptedValue
);
2111
Assert.Equal("1", entry.
AttemptedValue
);
2116
Assert.Equal("2", entry.
AttemptedValue
);
2179
Assert.Equal("1", entry.
AttemptedValue
);
2187
Assert.Equal("2", entry.
AttemptedValue
);
2244
Assert.Equal("key0", entry.
AttemptedValue
);
2249
Assert.Equal("10", entry.
AttemptedValue
);
2291
Assert.Equal("key0", entry.
AttemptedValue
);
2296
Assert.Equal("value0", entry.
AttemptedValue
);
2344
Assert.Equal("12", entry.
AttemptedValue
);
2398
Assert.Equal("12", entry.
AttemptedValue
);
2448
Assert.Equal("8", entry.
AttemptedValue
);
2500
Assert.Equal("8", entry.
AttemptedValue
);
ValidationWithRecordIntegrationTests.cs (42)
183
Assert.Equal("bill", entry.
AttemptedValue
);
221
Assert.Null(entry.
AttemptedValue
);
265
Assert.Equal("bill", entry.
AttemptedValue
);
303
Assert.Null(entry.
AttemptedValue
);
347
Assert.Equal("bill", entry.
AttemptedValue
);
388
Assert.Null(entry.
AttemptedValue
);
432
Assert.Equal("17", entry.
AttemptedValue
);
471
Assert.Null(entry.
AttemptedValue
);
512
Assert.Equal("17", entry.
AttemptedValue
);
553
Assert.Null(entry.
AttemptedValue
);
594
Assert.Equal("bill", entry.
AttemptedValue
);
631
Assert.Equal("billybob", entry.
AttemptedValue
);
675
Assert.Equal("bill", entry.
AttemptedValue
);
712
Assert.Equal("billybob", entry.
AttemptedValue
);
803
Assert.Equal("bill", entry.
AttemptedValue
);
840
Assert.Equal("billybob", entry.
AttemptedValue
);
845
Assert.Null(entry.
AttemptedValue
);
903
Assert.Equal("bill", entry.
AttemptedValue
);
940
Assert.Equal("billybob", entry.
AttemptedValue
);
945
Assert.Null(entry.
AttemptedValue
);
987
Assert.Equal("bill", entry.
AttemptedValue
);
1024
Assert.Equal("billybob", entry.
AttemptedValue
);
1098
Assert.Equal("bill", entry.
AttemptedValue
);
1138
Assert.Equal("-123", entry.
AttemptedValue
);
1559
Assert.Equal("US", entry.
AttemptedValue
);
1564
Assert.Equal("45", entry.
AttemptedValue
);
1569
Assert.Equal("46", entry.
AttemptedValue
);
1847
Assert.Equal("1", entry.
AttemptedValue
);
1852
Assert.Equal("2", entry.
AttemptedValue
);
1902
Assert.Equal("1", entry.
AttemptedValue
);
1907
Assert.Equal("2", entry.
AttemptedValue
);
1970
Assert.Equal("1", entry.
AttemptedValue
);
1978
Assert.Equal("2", entry.
AttemptedValue
);
2035
Assert.Equal("key0", entry.
AttemptedValue
);
2040
Assert.Equal("10", entry.
AttemptedValue
);
2082
Assert.Equal("key0", entry.
AttemptedValue
);
2087
Assert.Equal("value0", entry.
AttemptedValue
);
2135
Assert.Equal("12", entry.
AttemptedValue
);
2186
Assert.Equal("12", entry.
AttemptedValue
);
2236
Assert.Equal("8", entry.
AttemptedValue
);
2286
Assert.Equal("8", entry.
AttemptedValue
);
2448
Assert.Equal("SomeValue", entry.
AttemptedValue
);
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
DefaultHtmlGenerator.cs (2)
635
if (entry != null && entry.
AttemptedValue
!= null)
637
value = entry.
AttemptedValue
;
ValidationHelpers.cs (1)
39
var attemptedValue = containingEntry.
AttemptedValue
?? "null";