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