Skip to main content

Definition

Assembly: CloudNimble.Breakdance.Blazor.dll Namespace: CloudNimble.Breakdance.Blazor Inheritance: CloudNimble.Breakdance.Assemblies.BreakdanceTestBase

Syntax

Summary

A base class for building BUnit unit tests for Blazor apps that automatically handles basic registration stuff for you.

Constructors

.ctor

Syntax

Properties

BUnitTestContext

The bUnit BunitContext for the currently-executing test.

Syntax

Property Value

Type: Bunit.BunitContext

Methods

GetService Override

Get service of type T from the System.IServiceProvider.

Syntax

Returns

Type: T A service object of type T.

Type Parameters

  • T - The type of service object to get.

GetServices Override

Get an enumeration of services of type T from the System.IServiceProvider.

Syntax

Returns

Type: System.Collections.Generic.IEnumerable<T> An enumeration of services of type T.

Type Parameters

  • T - The type of service object to get.

TestSetup Override

Properly instantiates the BlazorBreakdanceTestBase.BUnitTestContext and registers the BreakdanceTestBase.TestHostTestHost’s</see>Services as a “fallback” IServiceProvider.

Syntax

TestSetup

Properly instantiates the BlazorBreakdanceTestBase.BUnitTestContext and registers the BreakdanceTestBase.TestHostTestHost’s</see>Services as a “fallback” IServiceProvider and allows you to set the bUnit JSInterop mode.

Syntax

Parameters

TestTearDown Override

Disposes of the BlazorBreakdanceTestBase.BUnitTestContext.

Syntax