IMockerBlazorTestHelpers<(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.InterfacesAssembly: FastMoq.Web (in FastMoq.Web.dll)
Syntax
IRenderedComponent<T> RenderComponent( Action<ComponentParameterCollectionBuilder<T>> parameterBuilder, bool forceNew )
Function RenderComponent ( _ parameterBuilder As Action(Of ComponentParameterCollectionBuilder(Of T)), _ forceNew As Boolean _ ) As IRenderedComponent(Of T)
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
C#
RenderComponent(b => b.Add(x => x.WeatherService, Mocks.GetObject<IWeatherForecastService>()));