Table of Contents

HasValidState Method

Definition

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

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

bool

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 and ConfigureHostCallback.