40 instantiations of ClientModelValidationContext
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (35)
CompareAttributeAdapterTest.cs (6)
29
var context = new
ClientModelValidationContext
(
72
var context = new
ClientModelValidationContext
(
107
var context = new
ClientModelValidationContext
(
144
var context = new
ClientModelValidationContext
(
184
var context = new
ClientModelValidationContext
(
217
var context = new
ClientModelValidationContext
(
FileExtensionsAttributeAdapterTest.cs (4)
33
var context = new
ClientModelValidationContext
(new ActionContext(), metadata, provider, new Dictionary<string, string>());
84
var context = new
ClientModelValidationContext
(new ActionContext(), metadata, provider, new Dictionary<string, string>());
119
var context = new
ClientModelValidationContext
(new ActionContext(), metadata, provider, new Dictionary<string, string>());
144
var context = new
ClientModelValidationContext
(new ActionContext(), metadata, provider, new Dictionary<string, string>());
MaxLengthAttributeAdapterTest.cs (5)
36
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
63
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
92
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
125
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
152
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
MinLengthAttributeAdapterTest.cs (4)
36
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
63
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
91
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
117
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
NumericClientModelValidatorTest.cs (5)
24
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
58
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
90
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
116
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
139
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
RangeAttributeAdapterTest.cs (3)
30
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
66
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
94
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
RequiredAttributeAdapterTest.cs (3)
37
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
62
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
87
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
StringLengthAttributeAdapterTest.cs (5)
37
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
64
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
91
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
119
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
145
var context = new
ClientModelValidationContext
(actionContext, metadata, provider, new Dictionary<string, string>());
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
DefaultValidationHtmlAttributeProvider.cs (1)
64
var validationContext = new
ClientModelValidationContext
(
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
PageRemoteAttributeTest.cs (1)
176
return new
ClientModelValidationContext
(
RemoteAttributeBaseTest.cs (1)
498
return new
ClientModelValidationContext
(
RemoteAttributeTest.cs (2)
379
return new
ClientModelValidationContext
(
426
return new
ClientModelValidationContext
(
98 references to ClientModelValidationContext
Microsoft.AspNetCore.Mvc.Abstractions (5)
ModelBinding\Validation\ClientModelValidationContext.cs (1)
12
/// Create a new instance of <see cref="
ClientModelValidationContext
"/>.
ModelBinding\Validation\IClientModelValidator.cs (2)
19
/// <param name="context">The <see cref="
ClientModelValidationContext
"/>.</param>
20
void AddValidation(
ClientModelValidationContext
context);
ModelBinding\Validation\IClientModelValidatorProvider.cs (1)
15
/// <param name="context">The <see cref="
ClientModelValidationContext
"/> associated with this call.</param>
ModelBinding\Validation\ModelValidationContextBase.cs (1)
7
/// A common base class for <see cref="ModelValidationContext"/> and <see cref="
ClientModelValidationContext
"/>.
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Metadata\DefaultValidationMetadataProviderTest.cs (2)
187
public void AddValidation(
ClientModelValidationContext
context)
195
public void AddValidation(
ClientModelValidationContext
context)
Microsoft.AspNetCore.Mvc.DataAnnotations (11)
CompareAttributeAdapter.cs (1)
22
public override void AddValidation(
ClientModelValidationContext
context)
DataTypeAttributeAdapter.cs (1)
26
public override void AddValidation(
ClientModelValidationContext
context)
FileExtensionsAttributeAdapter.cs (1)
30
public override void AddValidation(
ClientModelValidationContext
context)
MaxLengthAttributeAdapter.cs (1)
21
public override void AddValidation(
ClientModelValidationContext
context)
MinLengthAttributeAdapter.cs (1)
21
public override void AddValidation(
ClientModelValidationContext
context)
NumericClientModelValidator.cs (1)
16
public void AddValidation(
ClientModelValidationContext
context)
RangeAttributeAdapter.cs (1)
30
public override void AddValidation(
ClientModelValidationContext
context)
RegularExpressionAttributeAdapter.cs (1)
17
public override void AddValidation(
ClientModelValidationContext
context)
RequiredAttributeAdapter.cs (1)
26
public override void AddValidation(
ClientModelValidationContext
context)
StringLengthAttributeAdapter.cs (1)
24
public override void AddValidation(
ClientModelValidationContext
context)
ValidationAttributeAdapterOfTAttribute.cs (1)
36
public abstract void AddValidation(
ClientModelValidationContext
context);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (38)
CompareAttributeAdapterTest.cs (6)
29
var
context = new ClientModelValidationContext(
72
var
context = new ClientModelValidationContext(
107
var
context = new ClientModelValidationContext(
144
var
context = new ClientModelValidationContext(
184
var
context = new ClientModelValidationContext(
217
var
context = new ClientModelValidationContext(
DataAnnotationsMetadataProviderTest.cs (1)
1763
public void AddValidation(
ClientModelValidationContext
context)
DefaultModelClientValidatorProviderTest.cs (1)
243
public void AddValidation(
ClientModelValidationContext
context)
FileExtensionsAttributeAdapterTest.cs (4)
33
var
context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>());
84
var
context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>());
119
var
context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>());
144
var
context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>());
MaxLengthAttributeAdapterTest.cs (5)
36
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
63
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
92
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
125
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
152
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
MinLengthAttributeAdapterTest.cs (4)
36
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
63
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
91
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
117
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
NumericClientModelValidatorTest.cs (5)
24
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
58
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
90
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
116
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
139
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
RangeAttributeAdapterTest.cs (3)
30
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
66
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
94
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
RequiredAttributeAdapterTest.cs (3)
37
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
62
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
87
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
StringLengthAttributeAdapterTest.cs (5)
37
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
64
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
91
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
119
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
145
var
context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
ValidationAttributeAdapterOfTAttributeTest.cs (1)
59
public override void AddValidation(
ClientModelValidationContext
context)
Microsoft.AspNetCore.Mvc.ViewFeatures (10)
DefaultValidationHtmlAttributeProvider.cs (1)
64
var
validationContext = new ClientModelValidationContext(
PageRemoteAttribute.cs (1)
39
protected override string GetUrl(
ClientModelValidationContext
context)
RemoteAttribute.cs (1)
107
protected override string GetUrl(
ClientModelValidationContext
context)
RemoteAttributeBase.cs (7)
112
/// <param name="context">The <see cref="
ClientModelValidationContext
"/> used to generate the URL.</param>
114
protected abstract string GetUrl(
ClientModelValidationContext
context);
133
/// Adds Unobtrusive validation HTML attributes to <see cref="
ClientModelValidationContext
"/>.
136
/// <see cref="
ClientModelValidationContext
"/> to add Unobtrusive validation HTML attributes to.
139
/// Calls derived <see cref="ValidationAttribute"/> implementation of <see cref="GetUrl(
ClientModelValidationContext
)"/>.
141
public virtual void AddValidation(
ClientModelValidationContext
context)
173
private void CheckForLocalizer(
ClientModelValidationContext
context)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (32)
PageRemoteAttributeTest.cs (6)
48
var
validationContext = GetValidationContext(urlHelper);
86
var
validationContext = GetValidationContext(urlHelper);
118
var
validationContext = GetValidationContext(urlHelper);
149
var
validationContext = GetValidationContext(urlHelper);
158
private static
ClientModelValidationContext
GetValidationContext(IUrlHelper urlHelper, RouteData routeData = null)
220
public string InvokeGetUrl(
ClientModelValidationContext
context)
RemoteAttributeBaseTest.cs (10)
146
var
context = GetValidationContext();
181
var
context = GetValidationContext(localizerFactory);
216
var
context = GetValidationContext();
257
var
context = GetValidationContext(localizerFactory);
312
var
context = GetValidationContext(localizerFactory);
352
var
context = GetValidationContext(localizerFactory: null, metadataProvider: metadataProvider);
393
var
context = GetValidationContext(localizerFactory, metadataProvider);
445
var
context = GetValidationContext();
464
private static
ClientModelValidationContext
GetValidationContext(
517
protected override string GetUrl(
ClientModelValidationContext
context)
RemoteAttributeTest.cs (16)
146
var
context = GetValidationContextWithArea(currentArea: null);
161
var
context = GetValidationContext(urlHelper);
180
var
context = GetValidationContext(urlHelper);
201
var
context = GetValidationContext(urlHelper);
222
var
context = GetValidationContextWithArea(currentArea: null);
237
var
context = GetValidationContextWithArea(currentArea: "Test");
253
var
context = GetValidationContextWithArea(currentArea: null);
269
var
context = GetValidationContextWithArea(currentArea: "Test");
284
var
context = GetValidationContextWithArea(currentArea: null);
299
var
context = GetValidationContextWithArea(currentArea: "Test");
314
var
context = GetValidationContextWithArea(currentArea: "Test");
333
var
context = GetValidationContextWithArea(currentArea: "Test");
354
private static
ClientModelValidationContext
GetValidationContext(string url)
360
private static
ClientModelValidationContext
GetValidationContext(
386
private static
ClientModelValidationContext
GetValidationContextWithArea(string currentArea)
580
public string InvokeGetUrl(
ClientModelValidationContext
context)