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