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