Implemented interface member:
32 references to ContainsKey
Microsoft.AspNetCore.Mvc.Abstractions.Test (4)
ModelBinding\ModelStateDictionaryTest.cs (4)
22
var result = dictionary.
ContainsKey
(key);
39
var containsKey = dictionary.
ContainsKey
(key);
58
var result = dictionary.
ContainsKey
(key);
622
Assert.True(dictionary.
ContainsKey
("foo"));
Microsoft.AspNetCore.Mvc.Core.Test (23)
Formatters\JsonInputFormatterTestBase.cs (1)
434
Assert.False(formatterContext.ModelState.
ContainsKey
("age"));
Formatters\SystemTextJsonInputFormatterTest.cs (2)
155
Assert.True(formatterContext.ModelState.
ContainsKey
(modelStateKey));
177
Assert.True(formatterContext.ModelState.
ContainsKey
("$"));
Formatters\TextInputFormatterTest.cs (1)
34
Assert.True(context.ModelState.
ContainsKey
("something"));
ModelBinding\Binders\DateTimeModelBinderTest.cs (2)
176
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
199
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
ModelBinding\Binders\FloatingPointTypeModelBinderTestOfT.cs (6)
253
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
275
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
296
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
317
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
338
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
359
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (7)
34
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
62
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
215
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
236
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
257
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
282
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
353
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (4)
163
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
184
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
209
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
279
Assert.True(bindingContext.ModelState.
ContainsKey
("theModelName"));
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (4)
NewtonsoftJsonInputFormatterTest.cs (3)
248
Assert.True(formatterContext.ModelState.
ContainsKey
(modelStateKey));
303
Assert.True(formatterContext.ModelState.
ContainsKey
(string.Empty));
336
Assert.True(formatterContext.ModelState.
ContainsKey
(string.Empty));
src\Mvc\Mvc.Core\test\Formatters\JsonInputFormatterTestBase.cs (1)
434
Assert.False(formatterContext.ModelState.
ContainsKey
("age"));
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
DefaultHtmlGenerator.cs (1)
735
if (!viewContext.ViewData.ModelState.
ContainsKey
(fullName) && formContext == null)