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

Gets the component.

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

Syntax


public IRenderedComponent<TComponent> GetComponent<TComponent>()
where TComponent : IComponent, IComponent, IComponent
Public Function GetComponent(Of TComponent As {IComponent, IComponent, IComponent}) As IRenderedComponent(Of TComponent)
public:
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>();