IMockerBlazorTestHelpers<(Of <(<'T>)>)>..::..GetComponents<(Of <(<'TComponent>)>)> Method (Nullable<(Of <(<'Func<(Of <(<'IElement, Boolean>)>)>>)>)>)

Gets the components.

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

Syntax


List<IRenderedComponent<TComponent>> GetComponents<TComponent>(
	Nullable<Func<IElement, bool>> predicate
)
where TComponent : IComponent, IComponent
Function GetComponents(Of TComponent As {IComponent, IComponent}) ( _
	predicate As Nullable(Of Func(Of IElement, Boolean)) _
) As List(Of IRenderedComponent(Of TComponent))
generic<typename TComponent>
where TComponent : IComponent, IComponent
List<IRenderedComponent<TComponent>^>^ GetComponents(
	Nullable<Func<IElement^, bool^>^> predicate
)

Type Parameters

TComponent
The type of the t of type.

Parameters

predicate
Type: Nullable<(Of <(<'Func<(Of <(<'IElement, Boolean>)>)>>)>)>
The predicate.

Return Value

List<IRenderedComponent<TComponent>>.

Examples


Get FetchData component with inner html containing text. />
C#
var list = GetComponent<FetchData>(element => element.InnerHtml.Contains("hello"));