Table of Contents

Class RenderedComponentRenderExtensions

Namespace
Bunit
Assembly
Bunit.Core.dll

Re-render extension methods, optionally with new parameters, for IRenderedComponentBase<TComponent>.

public static class RenderedComponentRenderExtensions
Inheritance
RenderedComponentRenderExtensions
Inherited Members

Methods

Render<TComponent>(IRenderedComponentBase<TComponent>)

Render the component under test again.

public static void Render<TComponent>(this IRenderedComponentBase<TComponent> renderedComponent) where TComponent : IComponent

Parameters

renderedComponent IRenderedComponentBase<TComponent>

The rendered component to re-render.

Type Parameters

TComponent

The type of the component.

SetParametersAndRender<TComponent>(IRenderedComponentBase<TComponent>, params ComponentParameter[])

Render the component under test again with the provided parameters.

public static void SetParametersAndRender<TComponent>(this IRenderedComponentBase<TComponent> renderedComponent, params ComponentParameter[] parameters) where TComponent : IComponent

Parameters

renderedComponent IRenderedComponentBase<TComponent>

The rendered component to re-render with new parameters.

parameters ComponentParameter[]

Parameters to pass to the component upon rendered.

Type Parameters

TComponent

The type of the component.

SetParametersAndRender<TComponent>(IRenderedComponentBase<TComponent>, ParameterView)

Render the component under test again with the provided parameters.

public static void SetParametersAndRender<TComponent>(this IRenderedComponentBase<TComponent> renderedComponent, ParameterView parameters) where TComponent : IComponent

Parameters

renderedComponent IRenderedComponentBase<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.

SetParametersAndRender<TComponent>(IRenderedComponentBase<TComponent>, Action<ComponentParameterCollectionBuilder<TComponent>>)

Render the component under test again with the provided parameters from the parameterBuilder.

public static void SetParametersAndRender<TComponent>(this IRenderedComponentBase<TComponent> renderedComponent, Action<ComponentParameterCollectionBuilder<TComponent>> parameterBuilder) where TComponent : IComponent

Parameters

renderedComponent IRenderedComponentBase<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.

Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.