MockerBlazorTestBase<(Of <(<'T>)>)>..::..AuthContext Property

Gets the authentication context.

Namespace:  FastMoq.Web.Blazor
Assembly:  FastMoq.Web (in FastMoq.Web.dll)

Syntax


protected TestAuthorizationContext AuthContext { get; }
Protected ReadOnly Property AuthContext As TestAuthorizationContext
	Get
protected:
property TestAuthorizationContext^ AuthContext {
	TestAuthorizationContext^ get ();
}

Field Value

The authentication context.

Examples


Set not authorized.
C#
AuthContext.SetNotAuthorized()

Examples


Set authorized user.
C#
AuthContext.SetAuthorized("username")