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