Interface IRenderedFragmentBase
- Namespace
- Bunit
- Assembly
- Bunit.Core.dll
Represents a rendered RenderFragment.
public interface IRenderedFragmentBase : IDisposable
- Inherited Members
- Extension Methods
Properties
ComponentId
Gets the id of the rendered component or fragment.
int ComponentId { get; }
Property Value
IsDisposed
Gets a value indicating whether the rendered component or fragment has been disposed by the ITestRenderer.
bool IsDisposed { get; }
Property Value
RenderCount
Gets the total number times the fragment has been through its render life-cycle.
int RenderCount { get; }
Property Value
Services
Gets the IServiceProvider used when rendering the component.
IServiceProvider Services { get; }
Property Value
Methods
OnRender(RenderEvent)
Called by the owning ITestRenderer when it finishes a render.
void OnRender(RenderEvent renderEvent)
Parameters
renderEvent
RenderEventA RenderEvent that represents a render.
Events
OnAfterRender
Adds or removes an event handler that will be triggered after each render of this IRenderedFragmentBase.
event EventHandler OnAfterRender