2 writes to Key
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\Validation\ValidationEntry.cs (2)
26
Key
= key;
44
Key
= key;
57 references to Key
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Validation\ValidationVisitor.cs (1)
437
var key = entry.
Key
;
Microsoft.AspNetCore.Mvc.Core.Test (56)
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (12)
24
BufferEntries(enumerator).OrderBy(e => e.
Key
),
27
Assert.Equal("prefix[0]", e.
Key
);
33
Assert.Equal("prefix[1]", e.
Key
);
39
Assert.Equal("prefix[2]", e.
Key
);
64
BufferEntries(enumerator).OrderBy(e => e.
Key
),
67
Assert.Equal("prefix[0]", e.
Key
);
73
Assert.Equal("prefix[1]", e.
Key
);
79
Assert.Equal("prefix[2]", e.
Key
);
99
BufferEntries(enumerator).OrderBy(e => e.
Key
),
102
Assert.Equal("prefix[0]", e.
Key
);
108
Assert.Equal("prefix[1]", e.
Key
);
114
Assert.Equal("prefix[2]", e.
Key
);
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (16)
31
BufferEntries(enumerator).OrderBy(e => e.
Key
),
34
Assert.Equal("prefix.Age", entry.
Key
);
40
Assert.Equal("prefix.Id", entry.
Key
);
46
Assert.Equal("prefix.Name", entry.
Key
);
71
BufferEntries(enumerator).OrderBy(e => e.
Key
),
74
Assert.Equal("prefix.AGE", entry.
Key
);
80
Assert.Equal("prefix.ID", entry.
Key
);
86
Assert.Equal("prefix.NAME", entry.
Key
);
105
BufferEntries(enumerator).OrderBy(e => e.
Key
),
108
Assert.Equal("prefix.Age", entry.
Key
);
114
Assert.Equal("prefix.Id", entry.
Key
);
120
Assert.Equal("prefix.Name", entry.
Key
);
140
BufferEntries(enumerator).OrderBy(e => e.
Key
),
143
Assert.Equal("prefix.Age", entry.
Key
);
149
Assert.Equal("prefix.Id", entry.
Key
);
155
Assert.Equal("prefix.Name", entry.
Key
);
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (18)
24
BufferEntries(enumerator).OrderBy(e => e.
Key
),
27
Assert.Equal("prefix[one]", e.
Key
);
33
Assert.Equal("prefix[two]", e.
Key
);
39
Assert.Equal("prefix[zero]", e.
Key
);
64
BufferEntries(enumerator).OrderBy(e => e.
Key
),
67
Assert.Equal("prefix[one]", e.
Key
);
73
Assert.Equal("prefix[two]", e.
Key
);
79
Assert.Equal("prefix[zero]", e.
Key
);
99
BufferEntries(enumerator).OrderBy(e => e.
Key
),
102
Assert.Equal("prefix[one]", e.
Key
);
108
Assert.Equal("prefix[two]", e.
Key
);
114
Assert.Equal("prefix[zero]", e.
Key
);
135
BufferEntries(enumerator).OrderBy(e => e.
Key
),
138
Assert.Equal("prefix[one]", e.
Key
);
144
Assert.Equal("prefix[zero]", e.
Key
);
165
BufferEntries(enumerator).OrderBy(e => e.
Key
),
168
Assert.Equal("prefix[one]", e.
Key
);
174
Assert.Equal("prefix[zero]", e.
Key
);
ModelBinding\Validation\ShortFormDictionaryValidationStrategyTest.cs (10)
35
BufferEntries(enumerator).OrderBy(e => e.
Key
),
38
Assert.Equal("prefix[2]", e.
Key
);
44
Assert.Equal("prefix[3]", e.
Key
);
50
Assert.Equal("prefix[5]", e.
Key
);
82
BufferEntries(enumerator).OrderBy(e => e.
Key
),
85
Assert.Equal("prefix[2]", e.
Key
);
91
Assert.Equal("prefix[3]", e.
Key
);
123
BufferEntries(enumerator).OrderBy(e => e.
Key
),
126
Assert.Equal("prefix[2]", e.
Key
);
132
Assert.Equal("prefix[3]", e.
Key
);