Table of Contents

WebHostTest Constructor

Definition

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

WebHostTest(T, ITestOutputHelper, Type)

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

protected WebHostTest(T hostFixture, ITestOutputHelper output = null, Type callerType = null)

Parameters

hostFixture T

An implementation of the IWebHostFixture interface.

output ITestOutputHelper

An implementation of the Xunit.ITestOutputHelper interface.

callerType Type

The Type of caller that ends up invoking this instance.

WebHostTest(bool, T, ITestOutputHelper, Type)

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

protected WebHostTest(bool skipHostFixtureInitialization, T hostFixture, ITestOutputHelper output = null, Type callerType = null)

Parameters

skipHostFixtureInitialization bool

A value indicating whether to skip the host fixture initialization.

hostFixture T

An implementation of the IWebHostFixture interface.

output ITestOutputHelper

An implementation of the Xunit.ITestOutputHelper interface.

callerType Type

The Type of caller that ends up invoking this instance.