IMockerBlazorTestHelpers<(Of <(<'T>)>)>..::..GetComponent<(Of <(<'TComponent>)>)> Method

Gets the component.

Namespace:  FastMoq.Web.Blazor.Interfaces
Assembly:  FastMoq.Web (in FastMoq.Web.dll)

Syntax


IRenderedComponent<TComponent> GetComponent<TComponent>()
where TComponent : IComponent, IComponent, IComponent
Function GetComponent(Of TComponent As {IComponent, IComponent, IComponent}) As IRenderedComponent(Of TComponent)
generic<typename TComponent>
where TComponent : IComponent, IComponent, IComponent
IRenderedComponent<TComponent>^ GetComponent()

Type Parameters

TComponent
The type of the t component.

Return Value

IRenderedComponent<TComponent>.

Examples


Get FetchData component. />
C#
var comp = GetComponent<FetchData>();