UserManagerSpecificationTestBase<TUser,TKey>.CreateManager Method

Definition

Creates the user manager used for tests.

protected virtual Microsoft.AspNetCore.Identity.UserManager<TUser> CreateManager (object context = default, Microsoft.Extensions.DependencyInjection.IServiceCollection services = default, Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> configureServices = default);
abstract member CreateManager : obj * Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)>
override this.CreateManager : obj * Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)>
Protected Overridable Function CreateManager (Optional context As Object = Nothing, Optional services As IServiceCollection = Nothing, Optional configureServices As Action(Of IServiceCollection) = Nothing) As UserManager(Of TUser)

Parameters

context
Object

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

services
IServiceCollection

The service collection to use, optional.

configureServices
Action<IServiceCollection>

Delegate used to configure the services, optional.

Returns

UserManager<TUser>

The user manager to use for tests.

Applies to