MockerBlazorTestBase<(Of <(<'T>)>)>..::..RenderComponent Method (Action<(Of <(<'ComponentParameterCollectionBuilder<(Of <(<'T>)>)>>)>)>, Boolean)

Renders the component. If the component is already rendered, it will act like a stateChanged.

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

Syntax


public IRenderedComponent<T> RenderComponent(
	Action<ComponentParameterCollectionBuilder<T>> parameterBuilder,
	bool forceNew
)
Public Function RenderComponent ( _
	parameterBuilder As Action(Of ComponentParameterCollectionBuilder(Of T)), _
	forceNew As Boolean _
) As IRenderedComponent(Of T)
public:
IRenderedComponent<T>^ RenderComponent(
	Action<ComponentParameterCollectionBuilder<T>^>^ parameterBuilder, 
	bool^ forceNew
)

Parameters

parameterBuilder
Type: Action<(Of <(<'ComponentParameterCollectionBuilder<(Of <(<'T>)>)>>)>)>
The parameter builder.
forceNew
Type: Boolean
if set to true [force new].

Return Value

IRenderedComponent<T>.

Examples


Render again with parameters without losing context
C#
RenderComponent(b => b.Add(x => x.WeatherService, Mocks.GetObject<IWeatherForecastService>()));