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