18 writes to ViewData
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
1193ViewData = viewData
PageModel.cs (1)
1551ViewData = viewData
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Controller.cs (1)
202ViewData = ViewData,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (15)
PartialViewResultExecutorTest.cs (10)
43ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()), 65ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()), 89ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()), 122ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()), 157ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()), 192ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()), 220ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()), 263ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()), 293ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()), 322ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()),
PartialViewResultTest.cs (5)
31ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()) 87ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()), 125ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()), 165ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()), 214ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider()),
15 references to ViewData
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
PartialViewResult.cs (1)
35public object? Model => ViewData?.Model;
PartialViewResultExecutor.cs (1)
138viewResult.ViewData,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (13)
ControllerTest.cs (10)
214Assert.Same(controller.ViewData, actualViewResult.ViewData); 216Assert.Same(model, actualViewResult.ViewData.Model); 237Assert.Same(controller.ViewData, actualViewResult.ViewData); 239Assert.Same(model, actualViewResult.ViewData.Model); 259Assert.Same(controller.ViewData, actualViewResult.ViewData); 261Assert.Same(model, actualViewResult.ViewData.Model); 281Assert.Same(controller.ViewData, actualViewResult.ViewData); 283Assert.Same(model, actualViewResult.ViewData.Model); 303Assert.Same(controller.ViewData, actualViewResult.ViewData); 305Assert.Null(actualViewResult.ViewData.Model);
ControllerUnitTestabilityTests.cs (3)
53Assert.NotNull(viewResult.ViewData); 55Assert.Same(model, viewResult.ViewData.Model); 56Assert.Same(controller.ViewData, viewResult.ViewData);