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
jsRuntimeIJSRuntime
Properties
IsSignedOut
Returns true when SetSignOutState() was called, otherwise false
public bool IsSignedOut { get; set; }
Property Value
Methods
SetSignOutState()
Sets up some state in session storage to allow for logouts from within the LogoutPath page.
public override ValueTask SetSignOutState()
Returns
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()