Table of Contents

Class BunitJSInterop

Namespace
Bunit
Assembly
Bunit.Web.dll

Represents an bUnit's implementation of Blazor's JSInterop.

public class BunitJSInterop
Inheritance
BunitJSInterop
Derived
Inherited Members
Extension Methods

Constructors

BunitJSInterop()

Initializes a new instance of the BunitJSInterop class.

public BunitJSInterop()

Properties

Invocations

Gets a dictionary of all List<T> this mock has observed.

public JSRuntimeInvocationDictionary Invocations { get; }

Property Value

JSRuntimeInvocationDictionary

JSRuntime

Gets the mocked IJSRuntime instance.

public IJSRuntime JSRuntime { get; }

Property Value

IJSRuntime

Mode

Gets or sets whether the BunitJSInterop is running in Loose or Strict.

public virtual JSRuntimeMode Mode { get; set; }

Property Value

JSRuntimeMode

Methods

AddInvocationHandler<TResult>(JSRuntimeInvocationHandlerBase<TResult>)

Adds an invocation handler to bUnit's JSInterop. Can be used to register custom invocation handlers.

public void AddInvocationHandler<TResult>(JSRuntimeInvocationHandlerBase<TResult> handler)

Parameters

handler JSRuntimeInvocationHandlerBase<TResult>

Type Parameters

TResult
Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.