IdentitySpecificationTestBase<TUser,TRole,TKey>.CreateTestRole Method

Definition

Creates a new test role instance.

protected abstract TRole CreateTestRole (string roleNamePrefix = "", bool useRoleNamePrefixAsRoleName = false);
abstract member CreateTestRole : string * bool -> 'Role
Protected MustOverride Function CreateTestRole (Optional roleNamePrefix As String = "", Optional useRoleNamePrefixAsRoleName As Boolean = false) As TRole

Parameters

roleNamePrefix
String

Optional name prefix, name will be randomized.

useRoleNamePrefixAsRoleName
Boolean

If true, the prefix should be used as the rolename without a random pad.

Returns

TRole

Applies to