IdentitySpecificationTestBase<TUser,TRole,TKey>.CreateRoleManager 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 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.