49 references to Model
Microsoft.AspNetCore.Mvc.Abstractions (5)
ModelBinding\Validation\ValidationEntry.cs (5)
34
/// <param name="metadata">The <see cref="ModelMetadata"/> associated with the <see cref="
Model
"/>.</param>
35
/// <param name="key">The model prefix associated with the <see cref="
Model
"/>.</param>
36
/// <param name="modelAccessor">A delegate that will return the <see cref="
Model
"/>.</param>
50
/// The model prefix associated with <see cref="
Model
"/>.
55
/// The <see cref="ModelMetadata"/> associated with <see cref="
Model
"/>.
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Validation\ValidationVisitor.cs (1)
444
isValid &= Visit(metadata, key, entry.
Model
);
Microsoft.AspNetCore.Mvc.Core.Test (41)
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (9)
28
Assert.Equal(2, e.
Model
);
34
Assert.Equal(3, e.
Model
);
40
Assert.Equal(5, e.
Model
);
68
Assert.Equal(new KeyValuePair<int, string>(2, "two"), e.
Model
);
74
Assert.Equal(new KeyValuePair<int, string>(3, "three"), e.
Model
);
80
Assert.Equal(new KeyValuePair<int, string>(5, "five"), e.
Model
);
103
Assert.Equal(2, e.
Model
);
109
Assert.Equal(3, e.
Model
);
115
Assert.Equal(5, e.
Model
);
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (12)
35
Assert.Equal(23, entry.
Model
);
41
Assert.Equal(1, entry.
Model
);
47
Assert.Equal("Joey", entry.
Model
);
75
Assert.Equal(23, entry.
Model
);
81
Assert.Equal(1, entry.
Model
);
87
Assert.Equal("Joey", entry.
Model
);
109
Assert.Null(entry.
Model
);
115
Assert.Null(entry.
Model
);
121
Assert.Null(entry.
Model
);
144
Assert.Equal(23, entry.
Model
);
150
Assert.Throws<NullReferenceException>(() => entry.
Model
);
156
Assert.Throws<NullReferenceException>(() => entry.
Model
);
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (13)
28
Assert.Equal(3, e.
Model
);
34
Assert.Equal(5, e.
Model
);
40
Assert.Equal(2, e.
Model
);
68
Assert.Equal(new KeyValuePair<int, string>(3, "three"), e.
Model
);
74
Assert.Equal(new KeyValuePair<int, string>(5, "five"), e.
Model
);
80
Assert.Equal(new KeyValuePair<int, string>(2, "two"), e.
Model
);
103
Assert.Equal(3, e.
Model
);
109
Assert.Equal(5, e.
Model
);
115
Assert.Equal(2, e.
Model
);
139
Assert.Equal(3, e.
Model
);
145
Assert.Equal(2, e.
Model
);
169
Assert.Equal(3, e.
Model
);
175
Assert.Equal(2, e.
Model
);
ModelBinding\Validation\ShortFormDictionaryValidationStrategyTest.cs (7)
39
Assert.Equal("two", e.
Model
);
45
Assert.Equal("three", e.
Model
);
51
Assert.Equal("five", e.
Model
);
86
Assert.Equal("two", e.
Model
);
92
Assert.Equal("three", e.
Model
);
127
Assert.Equal("two", e.
Model
);
133
Assert.Equal("three", e.
Model
);
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
ValidationIntegrationTests.cs (1)
1546
var container = parentEntry.
Model
;
ValidationWithRecordIntegrationTests.cs (1)
1356
var container = parentEntry.
Model
;