Table of Contents

Class WebHostFixtureExtensions

Namespace
Codebelt.Extensions.Xunit.Hosting.AspNetCore
Assembly
Codebelt.Extensions.Xunit.Hosting.AspNetCore.dll

Extension methods for the IWebHostFixture interface.

public static class WebHostFixtureExtensions
Inheritance
WebHostFixtureExtensions

Methods

HasValidState(IWebHostFixture)

Determines whether the specified IWebHostFixture has a valid state.

public static bool HasValidState(this IWebHostFixture hostFixture)

Parameters

hostFixture IWebHostFixture

The IWebHostFixture to check.

Returns

Boolean

true if the specified IWebHostFixture has a valid state; otherwise, false.

Remarks

A valid state is defined as having non-null values for the following properties: ConfigureApplicationCallback, ConfigureServicesCallback, Host, ConfigureHostCallback and Application.