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

Sets the element switch.

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

Syntax


public IMockerBlazorTestHelpers<T> SetElementSwitch<TComponent>(
	string cssSelector,
	bool isChecked,
	Func<bool> waitFunc,
	Nullable<TimeSpan> waitTimeout,
	Nullable<IRenderedFragment> startingPoint
)
where TComponent : IComponent
Public Function SetElementSwitch(Of TComponent As IComponent) ( _
	cssSelector As String, _
	isChecked As Boolean, _
	waitFunc As Func(Of Boolean), _
	waitTimeout As Nullable(Of TimeSpan), _
	startingPoint As Nullable(Of IRenderedFragment) _
) As IMockerBlazorTestHelpers(Of T)
public:
generic<typename TComponent>
where TComponent : IComponent
IMockerBlazorTestHelpers<T>^ SetElementSwitch(
	String^ cssSelector, 
	bool^ isChecked, 
	Func<bool^>^ waitFunc, 
	Nullable<TimeSpan^> waitTimeout, 
	Nullable<IRenderedFragment^> startingPoint
)

Type Parameters

TComponent
The type of the t component.

Parameters

cssSelector
Type: String
The CSS selector.
isChecked
Type: Boolean
if set to true [is checked].
waitFunc
Type: Func<(Of <(<'Boolean>)>)>
The wait function.
waitTimeout
Type: Nullable<(Of <(<'TimeSpan>)>)>
The wait timeout.
startingPoint
Type: Nullable<(Of <(<'IRenderedFragment>)>)>
The starting point.

Return Value

IMockerBlazorTestHelpers<T>.