IdentitySpecificationTestBase<TUser,TRole,TKey>.AddRoleStore 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.
Adds an IRoleStore to services for the test.
protected abstract void AddRoleStore (Microsoft.Extensions.DependencyInjection.IServiceCollection services, object context = default);
abstract member AddRoleStore : Microsoft.Extensions.DependencyInjection.IServiceCollection * obj -> unit
Protected MustOverride Sub AddRoleStore (services As IServiceCollection, Optional context As Object = Nothing)
Parameters
- services
- IServiceCollection
The service collection to add to.
- context
- Object
The context for the store to use, optional.