19 references to ViewDataDictionary
Microsoft.AspNetCore.Mvc.Razor.Test (10)
Compilation\RazorPagePropertyActivatorTest.cs (4)
118var original = new ViewDataDictionary<object>(modelMetadataProvider, new ModelStateDictionary()) 147var original = new ViewDataDictionary<TestModel>(modelMetadataProvider, new ModelStateDictionary()) 176var original = new ViewDataDictionary<TestModel>(modelMetadataProvider, new ModelStateDictionary()) 203var original = new ViewDataDictionary<object>(modelMetadataProvider, new ModelStateDictionary());
RazorPageActivatorTest.cs (5)
52var viewData = new ViewDataDictionary<MyModel>(MetadataProvider, new ModelStateDictionary()); 88var viewData = new ViewDataDictionary<object>(MetadataProvider, new ModelStateDictionary()); 112var viewData = new ViewDataDictionary<object>(MetadataProvider, new ModelStateDictionary()) 160var viewData = new ViewDataDictionary<MyModel>(MetadataProvider, new ModelStateDictionary()); 175var viewData = new ViewDataDictionary<object>(MetadataProvider, new ModelStateDictionary())
RazorPageCreateModelExpressionTest.cs (1)
314var viewData = new ViewDataDictionary<RazorPageCreateModelExpressionModel>(provider, new ModelStateDictionary());
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DefaultPageFactoryProviderTest.cs (1)
221ViewData = new ViewDataDictionary<TestPage>(modelMetadataProvider, new ModelStateDictionary())
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
LabelTagHelperTest.cs (1)
295var viewData = new ViewDataDictionary<NestedModel>(metadataProvider, viewContext.ModelState);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (7)
DefaultHtmlGeneratorTest.cs (1)
1034var viewData = new ViewDataDictionary<TModel>(metadataProvider, actionContext.ModelState)
DefaultValidationHtmlAttributeProviderTest.cs (1)
254var viewData = new ViewDataDictionary<TModel>(metadataProvider, actionContext.ModelState)
Rendering\HtmlHelperSelectTest.cs (4)
422var viewData = new ViewDataDictionary<ModelContainingSources>(provider, modelState) 459var viewData = new ViewDataDictionary<ModelContainingSources>(provider, modelState) 825var viewData = new ViewDataDictionary<ModelContainingListOfSources>(provider, modelState) 862var viewData = new ViewDataDictionary<ModelContainingListOfSources>(provider, modelState)
ViewDataDictionaryOfTModelTest.cs (1)
19var viewData = new ViewDataDictionary<string>(metadataProvider, modelState);