Table of Contents

Class FakeSignOutSessionStateManager

Namespace
Bunit.TestDoubles
Assembly
Bunit.Web.dll

Represents a fake SignOutSessionStateManager that captures calls to SetSignOutState() that will help later to assert if the user was logged out

public class FakeSignOutSessionStateManager : SignOutSessionStateManager
Inheritance
FakeSignOutSessionStateManager
Inherited Members
Extension Methods

Constructors

FakeSignOutSessionStateManager(IJSRuntime)

Initializes a new instance of FakeSignOutSessionStateManager

public FakeSignOutSessionStateManager(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.

Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.