Table of Contents

Class TestServiceProviderExtensions

Namespace
Bunit.Extensions
Assembly
Bunit.Web.dll

Helper methods for correctly registering test dependencies.

public static class TestServiceProviderExtensions
Inheritance
TestServiceProviderExtensions
Inherited Members

Methods

AddDefaultTestContextServices(IServiceCollection, TestContextBase, BunitJSInterop)

Registers the default services required by the web TestContext.

public static IServiceCollection AddDefaultTestContextServices(this IServiceCollection services, TestContextBase testContext, BunitJSInterop jsInterop)

Parameters

services IServiceCollection
testContext TestContextBase
jsInterop BunitJSInterop

Returns

IServiceCollection
.NET Foundation

Supported by the .NET Foundation.