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.
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for