IdentitySpecificationTestBase<TUser,TRole,TKey>.CreateTestRole Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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