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

Gets or sets the authentication username.

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

Syntax


[ExcludeFromCodeCoverageAttribute]
protected virtual string AuthUsername { get; set; }
<ExcludeFromCodeCoverageAttribute> _
Protected Overridable Property AuthUsername As String
	Get
	Set
[ExcludeFromCodeCoverageAttribute]
protected:
virtual property String^ AuthUsername {
	String^ get ();
	void set (String^ value);
}

Field Value

The authentication username.

Examples


Set authorized user.
C#
AuthContext.SetAuthorized("username")
AuthUsername = "TestUser";