Class RenderedComponentRenderExtensions
- Namespace
- Bunit
- Assembly
- bunit.dll
Re-render extension methods, optionally with new parameters, for RenderedComponent<TComponent>.
public static class RenderedComponentRenderExtensions
- Inheritance
-
RenderedComponentRenderExtensions
- Inherited Members
Methods
Render<TComponent>(IRenderedComponent<TComponent>, ParameterView)
Render the component under test again with the provided parameters.
public static void Render<TComponent>(this IRenderedComponent<TComponent> renderedComponent, ParameterView parameters) where TComponent : IComponent
Parameters
renderedComponentIRenderedComponent<TComponent>The rendered component to re-render with new parameters.
parametersParameterViewParameters to pass to the component upon rendered.
Type Parameters
TComponentThe type of the component.
Render<TComponent>(IRenderedComponent<TComponent>, Action<ComponentParameterCollectionBuilder<TComponent>>?)
Render the component under test again with the provided parameters from the parameterBuilder.
public static void Render<TComponent>(this IRenderedComponent<TComponent> renderedComponent, Action<ComponentParameterCollectionBuilder<TComponent>>? parameterBuilder = null) where TComponent : IComponent
Parameters
renderedComponentIRenderedComponent<TComponent>The rendered component to re-render with new parameters.
parameterBuilderAction<ComponentParameterCollectionBuilder<TComponent>>An action that receives a ComponentParameterCollectionBuilder<TComponent>.
Type Parameters
TComponentThe type of the component.