23 references to ViewDataDictionary
Microsoft.AspNetCore.Mvc.Razor.Test (3)
RazorPageCreateModelExpressionTest.cs (3)
26var viewData = new ViewDataDictionary<string>(viewContext.ViewData) 51var viewData = new ViewDataDictionary<string>(viewContext.ViewData) 108var viewData = new ViewDataDictionary<RecursiveModel>(viewContext.ViewData);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
TemplateBuilder.cs (1)
74var viewData = new ViewDataDictionary<object>(_viewData);
ViewComponents\ViewComponentContext.cs (1)
61new ViewDataDictionary<object>(viewContext.ViewData),
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (18)
ViewComponentTests.cs (8)
77Assert.Equal(new ViewDataDictionary<object>(viewComponent.ViewData), actualResult.ViewData); 96Assert.Equal(new ViewDataDictionary<object>(viewComponent.ViewData), actualResult.ViewData); 114Assert.Equal(new ViewDataDictionary<object>(viewComponent.ViewData), actualResult.ViewData); 134Assert.Equal(new ViewDataDictionary<object>(viewComponent.ViewData), actualResult.ViewData); 154Assert.Equal(new ViewDataDictionary<object>(viewComponent.ViewData), actualResult.ViewData); 173Assert.Equal(new ViewDataDictionary<object>(viewComponent.ViewData), actualResult.ViewData); 192Assert.Equal(new ViewDataDictionary<string>(viewComponent.ViewData), actualResult.ViewData); 212Assert.Equal(new ViewDataDictionary<object>(viewComponent.ViewData), actualResult.ViewData);
ViewDataDictionaryOfTModelTest.cs (10)
43var viewData1 = new ViewDataDictionary<object>(source); 82var viewData1 = new ViewDataDictionary<TestModel>(source); 144var viewData = new ViewDataDictionary<TestModel>(source); 188var viewData1 = new ViewDataDictionary<string>(source); 216var exception = Assert.Throws<InvalidOperationException>(() => new ViewDataDictionary<string>(source)); 293var viewData = new ViewDataDictionary<int?>(source); 332var viewData2 = new ViewDataDictionary<int>(viewData1); 355var viewData2 = new ViewDataDictionary<string>(viewData1); 380var viewData2 = (ViewDataDictionary)new ViewDataDictionary<string>(viewData1); 407var viewData2 = (ViewDataDictionary)new ViewDataDictionary<int>(viewData1);