You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Marks a component as a stub component so that a stub gets generated for it. The stub has the same name as the component, but with the suffix ""Stub"" added.
28
+
/// </summary>
29
+
/// <typeparam name=""TComponent"">The type of component to generate a stub for.</typeparam>
30
+
/// <remarks>
31
+
/// When <c>ComponentFactories.AddGeneratedStub<MyButton>()</c> is called, a stub component is generated for the component
32
+
/// with the name <c>MyButtonStub</c>. The stub component is added to the <see cref=""ComponentFactoryCollection""/> and can be used.
33
+
/// It can also be retrieved via `cut.FindComponent<MyButtonStub>()`.
34
+
/// This call does the same as <c>ComponentFactories.Add<MyButton, MyButtonStub>()</c>.
35
+
/// </remarks>
36
+
public static ComponentFactoryCollection AddGeneratedStub<TComponent>(this ComponentFactoryCollection factories)
37
+
where TComponent : Microsoft.AspNetCore.Components.IComponent
0 commit comments