9 writes to ViewComponentType
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
1261ViewComponentType = componentType,
PageModel.cs (1)
1619ViewComponentType = componentType,
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Controller.cs (1)
274ViewComponentType = componentType,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
ViewComponentResultTest.cs (5)
157ViewComponentType = typeof(TextViewComponent), 382ViewComponentType = typeof(TextViewComponent), 424ViewComponentType = typeof(TextViewComponent), 466ViewComponentType = typeof(TextViewComponent), 497ViewComponentType = typeof(TextViewComponent),
RazorPagesWebSite (1)
Pages\ViewData\ViewDataToViewComponentPage.cs (1)
23ViewComponentType = typeof(ViewDataViewComponent),
12 references to ViewComponentType
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
PageModelTest.cs (2)
2024Assert.Equal(typeof(Guid), result.ViewComponentType); 2041Assert.Equal(typeof(Guid), result.ViewComponentType);
PageTest.cs (2)
1799Assert.Equal(typeof(Guid), result.ViewComponentType); 1824Assert.Equal(typeof(Guid), result.ViewComponentType);
Microsoft.AspNetCore.Mvc.ViewFeatures (6)
ViewComponentResult.cs (1)
28/// Gets or sets the name of the view component to invoke. Will be ignored if <see cref="ViewComponentType"/>
ViewComponentResultExecutor.cs (5)
144if (result.ViewComponentType == null && result.ViewComponentName == null) 148nameof(ViewComponentResult.ViewComponentType))); 150else if (result.ViewComponentType == null) 157Log.ViewComponentResultExecuting(logger, result.ViewComponentType); 158return viewComponentHelper.InvokeAsync(result.ViewComponentType, result.Arguments);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ControllerUnitTestabilityTests.cs (2)
663Assert.Equal(typeof(TagCloudViewComponent), result.ViewComponentType); 678Assert.Equal(typeof(TagCloudViewComponent), result.ViewComponentType);