16 writes to ViewData
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Controller.cs (1)
149
ViewData
= ViewData,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (15)
ViewResultExecutorTest.cs (10)
42
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider()),
64
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider()),
88
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider()),
120
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider()),
154
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider()),
188
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider()),
216
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider()),
258
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider()),
288
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider()),
312
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider()),
ViewResultTest.cs (5)
41
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider())
97
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider()),
137
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider()),
177
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider()),
226
ViewData
= new ViewDataDictionary(new EmptyModelMetadataProvider()),
17 references to ViewData
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ViewResult.cs (1)
35
public object? Model =>
ViewData
?.Model;
ViewResultExecutor.cs (1)
155
result.
ViewData
,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (15)
ControllerTest.cs (12)
79
Assert.Same(controller.ViewData, actualViewResult.
ViewData
);
81
Assert.Null(actualViewResult.
ViewData
.Model);
103
Assert.Same(controller.ViewData, actualViewResult.
ViewData
);
105
Assert.Same(model, actualViewResult.
ViewData
.Model);
124
Assert.Same(controller.ViewData, actualViewResult.
ViewData
);
126
Assert.Null(actualViewResult.
ViewData
.Model);
146
Assert.Same(controller.ViewData, actualViewResult.
ViewData
);
148
Assert.Same(model, actualViewResult.
ViewData
.Model);
168
Assert.Same(controller.ViewData, actualViewResult.
ViewData
);
170
Assert.Same(model, actualViewResult.
ViewData
.Model);
190
Assert.Same(controller.ViewData, actualViewResult.
ViewData
);
192
Assert.Null(actualViewResult.
ViewData
.Model);
ControllerUnitTestabilityTests.cs (3)
31
Assert.NotNull(viewResult.
ViewData
);
33
Assert.Same(model, viewResult.
ViewData
.Model);
34
Assert.Same(controller.ViewData, viewResult.
ViewData
);