Table of Contents

ApplicationTest<TEntryPoint, T> Class

Definition

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

Represents a base class from which all implementations of unit testing, that uses Microsoft Dependency Injection and depends on an existing .NET application entry point, should derive.

public abstract class ApplicationTest<TEntryPoint, T> : HostTest, IAsyncLifetime, IHostTest, IConfigurationTest, IEnvironmentTest, ITest, IDisposable, IAsyncDisposable, IClassFixture<T> where TEntryPoint : class where T : class, IApplicationFixture<TEntryPoint>

Type Parameters

TEntryPoint

A type in the entry point assembly of the application.

T

The type of the object that implements the IApplicationFixture<TEntryPoint> interface.

Inheritance
ApplicationTest<TEntryPoint, T>
Implements
IAsyncLifetime
IClassFixture<T>
Inherited Members

Constructors

Name Description
ApplicationTest(bool, T, ITestOutputHelper, Type)

Initializes a new instance of the ApplicationTest<TEntryPoint, T> class.

ApplicationTest(T, ITestOutputHelper, Type)

Initializes a new instance of the ApplicationTest<TEntryPoint, T> class.

Methods

Name Description
ConfigureHost(IHostBuilder)

Provides a way to override the IHostBuilder defaults before the application is built.

See Also

HostTest
IClassFixture<TFixture>