Table of Contents

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

renderedComponent IRenderedComponent<TComponent>

The rendered component to re-render with new parameters.

parameters ParameterView

Parameters to pass to the component upon rendered.

Type Parameters

TComponent

The 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

renderedComponent IRenderedComponent<TComponent>

The rendered component to re-render with new parameters.

parameterBuilder Action<ComponentParameterCollectionBuilder<TComponent>>

An action that receives a ComponentParameterCollectionBuilder<TComponent>.

Type Parameters

TComponent

The type of the component.

.NET Foundation

Supported by the .NET Foundation.