Table of Contents

Host Property

Definition

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

Host

Gets the IHost initialized by the IGenericHostFixture.

public IHost Host { get; protected set; }

Property Value

IHost

The IHost initialized by the IGenericHostFixture.

Remarks

For an entry-point-owned host captured by the managed application fixture path, accessing the host starts it when the application entry point has not started it yet. This keeps the opt-in entrypoint-owned applications lazy while matching the startup behavior of WebApplicationFactory when its server is consumed.