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
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()

public override ValueTask SetSignOutState()

Returns

ValueTask

ValidateSignOutState()

public override Task<bool> ValidateSignOutState()

Returns

Task<bool>
.NET Foundation

Supported by the .NET Foundation.