Table of Contents

IGenericHostFixture Interface

Definition

Namespace
Codebelt.Extensions.Xunit.Hosting
Assemblies
Codebelt.Extensions.Xunit.Hosting.dll
Source
src/Codebelt.Extensions.Xunit.Hosting/IGenericHostFixture.cs

Provides a way to use Microsoft Dependency Injection in unit tests.

public interface IGenericHostFixture : IHostFixture, IConfigurationTest, IEnvironmentTest, IDisposable, IAsyncDisposable
Inherited Members
Extension Methods

Properties

Name Description
ConfigureHostCallback

Gets or sets the delegate that provides a way to override the IHostBuilder defaults set up by ConfigureHost(Test).

ConfigureServicesCallback

Gets or sets the delegate that adds services to the container.

Methods

Name Description
ConfigureHost(Test)

Creates and configures the IHost of this IGenericHostFixture.

See Also