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