HasValidState Method
Definition
- Namespace
- Codebelt.Extensions.Xunit.Hosting.AspNetCore
- Assemblies
- Codebelt.Extensions.Xunit.Hosting.AspNetCore.dll
HasValidState(IWebMinimalHostFixture)
Determines whether the specified IWebMinimalHostFixture has a valid state.
public static bool HasValidState(this IWebMinimalHostFixture hostFixture)
Parameters
hostFixtureIWebMinimalHostFixtureThe IWebMinimalHostFixture to check.
Returns
- bool
trueif the specified IWebMinimalHostFixture has a valid state; otherwise,false.
Remarks
A valid state is defined as having non-null values for the following properties: ConfigureHostCallback, ConfigureCallback, ConfigureApplicationCallback, Application and Host.