1 instantiation of DefaultViewComponentHelper
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ViewComponents\DefaultViewComponentHelperTest.cs (1)
147
return new
DefaultViewComponentHelper
(
16 references to DefaultViewComponentHelper
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (1)
182
services.TryAddTransient<IViewComponentHelper,
DefaultViewComponentHelper
>();
ViewComponents\DefaultViewComponentHelper.cs (1)
29
/// Initializes a new instance of <see cref="
DefaultViewComponentHelper
"/>.
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (14)
ViewComponentResultTest.cs (1)
665
services.AddTransient<IViewComponentHelper,
DefaultViewComponentHelper
>();
ViewComponents\DefaultViewComponentHelperTest.cs (13)
18
var
helper = CreateHelper();
22
var argumentDictionary =
DefaultViewComponentHelper
.GetArgumentDictionary(descriptor, null);
33
var
helper = CreateHelper();
37
var argumentDictionary =
DefaultViewComponentHelper
.GetArgumentDictionary(descriptor, new { a = 0 });
53
var
helper = CreateHelper();
57
var argumentDictionary =
DefaultViewComponentHelper
.GetArgumentDictionary(descriptor, 0);
73
var
helper = CreateHelper();
77
var argumentDictionary =
DefaultViewComponentHelper
.GetArgumentDictionary(descriptor, new { a = 0, b = "foo" });
99
var
helper = CreateHelper();
104
var argumentDictionary =
DefaultViewComponentHelper
.GetArgumentDictionary(descriptor, expectedValue);
120
var
helper = CreateHelper();
128
var argumentDictionary =
DefaultViewComponentHelper
.GetArgumentDictionary(descriptor, arguments);
140
private
DefaultViewComponentHelper
CreateHelper()