Table of Contents

HasValidState Method

Definition

HasValidState(IWebMinimalHostFixture)

Determines whether the specified IWebMinimalHostFixture has a valid state.

public static bool HasValidState(this IWebMinimalHostFixture hostFixture)

Parameters

hostFixture IWebMinimalHostFixture

The IWebMinimalHostFixture to check.

Returns

bool

true if 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.