14 writes to ViewData
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponent.cs (1)
219ViewData = viewData
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (13)
ViewComponents\ViewViewComponentResultTest.cs (13)
50ViewData = viewData, 84ViewData = viewData, 118ViewData = viewData, 168ViewData = viewData, 206ViewData = viewData, 246ViewData = viewData, 284ViewData = viewData, 320ViewData = viewData, 360ViewData = viewData, 406ViewData = viewData, 434ViewData = viewData, 466componentResult.ViewData = viewData; 492ViewData = viewData,
31 references to ViewData
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponents\ViewViewComponentResult.cs (1)
121ViewData ?? context.ViewData,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (30)
ViewComponentTests.cs (30)
76Assert.NotSame(viewComponent.ViewData, actualResult.ViewData); 77Assert.Equal(new ViewDataDictionary<object>(viewComponent.ViewData), actualResult.ViewData); 78Assert.Null(actualResult.ViewData.Model); 95Assert.NotSame(viewComponent.ViewData, actualResult.ViewData); 96Assert.Equal(new ViewDataDictionary<object>(viewComponent.ViewData), actualResult.ViewData); 97Assert.Same(model, actualResult.ViewData.Model); 112Assert.IsType<ViewDataDictionary<object>>(actualResult.ViewData); 113Assert.NotSame(viewComponent.ViewData, actualResult.ViewData); 114Assert.Equal(new ViewDataDictionary<object>(viewComponent.ViewData), actualResult.ViewData); 115Assert.Null(actualResult.ViewData.Model); 132Assert.IsType<ViewDataDictionary<object>>(actualResult.ViewData); 133Assert.NotSame(viewComponent.ViewData, actualResult.ViewData); 134Assert.Equal(new ViewDataDictionary<object>(viewComponent.ViewData), actualResult.ViewData); 135Assert.Same(model, actualResult.ViewData.Model); 152Assert.IsType<ViewDataDictionary<object>>(actualResult.ViewData); 153Assert.NotSame(viewComponent.ViewData, actualResult.ViewData); 154Assert.Equal(new ViewDataDictionary<object>(viewComponent.ViewData), actualResult.ViewData); 155Assert.Null(actualResult.ViewData.Model); 171Assert.IsType<ViewDataDictionary<object>>(actualResult.ViewData); 172Assert.NotSame(viewComponent.ViewData, actualResult.ViewData); 173Assert.Equal(new ViewDataDictionary<object>(viewComponent.ViewData), actualResult.ViewData); 174Assert.Null(actualResult.ViewData.Model); 190Assert.IsType<ViewDataDictionary<string>>(actualResult.ViewData); 191Assert.NotSame(viewComponent.ViewData, actualResult.ViewData); 192Assert.Equal(new ViewDataDictionary<string>(viewComponent.ViewData), actualResult.ViewData); 193Assert.Null(actualResult.ViewData.Model); 210Assert.IsType<ViewDataDictionary<object>>(actualResult.ViewData); 211Assert.NotSame(viewComponent.ViewData, actualResult.ViewData); 212Assert.Equal(new ViewDataDictionary<object>(viewComponent.ViewData), actualResult.ViewData); 213Assert.Same(model, actualResult.ViewData.Model);