HasValidState Method
Definition
- Namespace
- Codebelt.Extensions.Xunit.Hosting.AspNetCore
- Assemblies
- Codebelt.Extensions.Xunit.Hosting.AspNetCore.dll
HasValidState<TEntryPoint>(IWebApplicationFixture<TEntryPoint>)
Determines whether the specified IWebApplicationFixture<TEntryPoint> has a valid state.
public static bool HasValidState<TEntryPoint>(this IWebApplicationFixture<TEntryPoint> hostFixture) where TEntryPoint : class
Parameters
hostFixtureIWebApplicationFixture<TEntryPoint>The IWebApplicationFixture<TEntryPoint> to check.
Returns
- bool
trueif the specified IWebApplicationFixture<TEntryPoint> has a valid state; otherwise,false.
Type Parameters
TEntryPointA type in the entry point assembly of the application.
Remarks
A valid state is defined as having non-null values for the following properties: Host, ConfigureCallback and ConfigureWebHostCallback.