15 instantiations of ViewViewComponentResult
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\ExecutorFactoryTest.cs (1)
309
public IViewComponentResult ViewComponent() => new
ViewViewComponentResult
();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponent.cs (1)
215
return new
ViewViewComponentResult
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (13)
ViewComponents\ViewViewComponentResultTest.cs (13)
46
var result = new
ViewViewComponentResult
81
var result = new
ViewViewComponentResult
115
var result = new
ViewViewComponentResult
164
var result = new
ViewViewComponentResult
202
var result = new
ViewViewComponentResult
242
var result = new
ViewViewComponentResult
280
var result = new
ViewViewComponentResult
316
var result = new
ViewViewComponentResult
357
var result = new
ViewViewComponentResult
402
var result = new
ViewViewComponentResult
431
var result = new
ViewViewComponentResult
464
var componentResult = new
ViewViewComponentResult
();
489
var componentResult = new
ViewViewComponentResult
37 references to ViewViewComponentResult
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
ViewComponent.cs (8)
180
/// <returns>A <see cref="
ViewViewComponentResult
"/>.</returns>
181
public
ViewViewComponentResult
View()
190
/// <returns>A <see cref="
ViewViewComponentResult
"/>.</returns>
191
public
ViewViewComponentResult
View(string? viewName)
200
/// <returns>A <see cref="
ViewViewComponentResult
"/>.</returns>
201
public
ViewViewComponentResult
View<TModel>(TModel? model)
211
/// <returns>A <see cref="
ViewViewComponentResult
"/>.</returns>
212
public
ViewViewComponentResult
View<TModel>(string? viewName, TModel? model)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (29)
ViewComponents\ViewViewComponentResultTest.cs (13)
46
var
result = new ViewViewComponentResult
81
var
result = new ViewViewComponentResult
115
var
result = new ViewViewComponentResult
164
var
result = new ViewViewComponentResult
202
var
result = new ViewViewComponentResult
242
var
result = new ViewViewComponentResult
280
var
result = new ViewViewComponentResult
316
var
result = new ViewViewComponentResult
357
var
result = new ViewViewComponentResult
402
var
result = new ViewViewComponentResult
431
var
result = new ViewViewComponentResult
464
var
componentResult = new ViewViewComponentResult();
489
var
componentResult = new ViewViewComponentResult
ViewComponentTests.cs (16)
72
var
actualResult = viewComponent.View();
75
Assert.IsType<
ViewViewComponentResult
>(actualResult);
91
var
actualResult = viewComponent.View();
94
Assert.IsType<
ViewViewComponentResult
>(actualResult);
108
var
actualResult = viewComponent.View("CustomViewName");
111
Assert.IsType<
ViewViewComponentResult
>(actualResult);
128
var
actualResult = viewComponent.View(model);
131
Assert.IsType<
ViewViewComponentResult
>(actualResult);
148
var
actualResult = viewComponent.View(model: model);
151
Assert.IsType<
ViewViewComponentResult
>(actualResult);
167
var
actualResult = viewComponent.View<object>("CustomViewName", model: null);
170
Assert.IsType<
ViewViewComponentResult
>(actualResult);
186
var
actualResult = viewComponent.View<string>("CustomViewName", model: null);
189
Assert.IsType<
ViewViewComponentResult
>(actualResult);
206
var
actualResult = viewComponent.View("CustomViewName", model);
209
Assert.IsType<
ViewViewComponentResult
>(actualResult);