Share via


IdentitySpecificationTestBase<TUser,TRole,TKey>.CreateRoleManager Method

Definition

Creates the role manager for tests.

protected virtual Microsoft.AspNetCore.Identity.RoleManager<TRole> CreateRoleManager (object context = default, Microsoft.Extensions.DependencyInjection.IServiceCollection services = default);
abstract member CreateRoleManager : obj * Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.Identity.RoleManager<'Role (requires 'Role : null)>
override this.CreateRoleManager : obj * Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.Identity.RoleManager<'Role (requires 'Role : null)>
Protected Overridable Function CreateRoleManager (Optional context As Object = Nothing, Optional services As IServiceCollection = Nothing) As RoleManager(Of TRole)

Parameters

context
Object

The context that will be passed into the store, typically a db context.

services
IServiceCollection

The service collection to use, optional.

Returns

Applies to