Table of Contents

Class BunitSignOutSessionStateManager

Namespace
Bunit.TestDoubles
Assembly
bunit.dll

Represents bUnit's own SignOutSessionStateManager that captures calls to SetSignOutState() that will help later to assert if the user was logged out

public class BunitSignOutSessionStateManager : SignOutSessionStateManager
Inheritance
BunitSignOutSessionStateManager
Inherited Members
Extension Methods

Constructors

BunitSignOutSessionStateManager(IJSRuntime)

Initializes a new instance of BunitSignOutSessionStateManager

public BunitSignOutSessionStateManager(IJSRuntime jsRuntime)

Parameters

jsRuntime IJSRuntime

Properties

IsSignedOut

Returns true when SetSignOutState() was called, otherwise false

public bool IsSignedOut { get; set; }

Property Value

bool

Methods

SetSignOutState()

Sets up some state in session storage to allow for logouts from within the LogoutPath page.

public override ValueTask SetSignOutState()

Returns

ValueTask

A ValueTask that completes when the state has been saved to session storage.

ValidateSignOutState()

Validates the existence of some state previously setup by SetSignOutState() in session storage to allow logouts from within the LogoutPath page.

public override Task<bool> ValidateSignOutState()

Returns

Task<bool>

A Task that completes when the state has been validated and indicates the validity of the state.

.NET Foundation

Supported by the .NET Foundation.