Table of Contents

WebHostTest<T> Class

Definition

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

Represents a base class from which all implementations of unit testing, that uses Microsoft Dependency Injection and depends on ASP.NET Core, should derive.

public abstract class WebHostTest<T> : HostTest<T>, IAsyncLifetime, IClassFixture<T>, IWebHostTest, IHostTest, IConfigurationTest, IEnvironmentTest, ITest, IDisposable, IAsyncDisposable, IPipelineTest where T : class, IWebHostFixture

Type Parameters

T

The type of the object that implements the IWebHostFixture interface.

Inheritance
WebHostTest<T>
Implements
IAsyncLifetime
IClassFixture<T>
Inherited Members

Constructors

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

Initializes a new instance of the WebHostTest<T> class.

WebHostTest(T, ITestOutputHelper, Type)

Initializes a new instance of the WebHostTest<T> class.

Properties

Name Description
Application

Gets the IApplicationBuilder initialized by the IHost.

Methods

Name Description
ConfigureApplication(IApplicationBuilder)

Configures the HTTP request pipeline.

See Also