IMockerBlazorTestHelpers<(Of <(<'T>)>)>..::..GetComponents<(Of <(<'TComponent>)>)> Method (Nullable<(Of <(<'Func<(Of <(<'IRenderedComponent<(Of <(<'TComponent>)>)>, Boolean>)>)>>)>)>)
Gets the components.
Namespace:
FastMoq.Web.Blazor.InterfacesAssembly: FastMoq.Web (in FastMoq.Web.dll)
Syntax
IReadOnlyList<IRenderedComponent<TComponent>> GetComponents<TComponent>( Nullable<Func<IRenderedComponent<TComponent>, bool>> predicate ) where TComponent : IComponent, IComponent
Type Parameters
- TComponent
- The type of the t of type.
Parameters
Return Value
List<IRenderedComponent<TComponent>>.Examples
C#
var list = GetComponent<FetchData>(x => x.ComponentId == 1234));