19 references to ApplicationUser
Microsoft.AspNetCore.Identity.FunctionalTests (19)
MapIdentityApiTests.cs (19)
173services.AddIdentityCore<ApplicationUser>().AddApiEndpoints().AddEntityFrameworkStores<ApplicationDbContext>(); 248services.AddIdentityCore<ApplicationUser>().AddApiEndpoints().AddEntityFrameworkStores<ApplicationDbContext>(); 333services.AddIdentityCore<ApplicationUser>().AddApiEndpoints().AddEntityFrameworkStores<ApplicationDbContext>(); 389var userManager = app.Services.GetRequiredService<UserManager<ApplicationUser>>(); 390var user = await userManager.FindByNameAsync(Email); 408var userManager = app.Services.GetRequiredService<UserManager<ApplicationUser>>(); 409var user = await userManager.FindByNameAsync(Email); 577services.AddSingleton<IEmailSender<ApplicationUser>>(customEmailSender); 595await using var app = await CreateAppAsync<ApplicationUser, ApplicationDbContext>(services => 605app.MapGroup("/identity2").MapIdentityApi<ApplicationUser>(); 628await using var app = await CreateAppAsync<ApplicationUser, ApplicationDbContext>(services => 630AddIdentityApiEndpoints<ApplicationUser, ApplicationDbContext>(services); 1370=> AddIdentityApiEndpoints<ApplicationUser, ApplicationDbContext>(services); 1380.AddIdentityCore<ApplicationUser>() 1386=> CreateAppAsync<ApplicationUser, ApplicationDbContext>(configureServices); 1562private sealed class TestCustomEmailSender(IEmailSender emailSender) : IEmailSender<ApplicationUser> 1567public Task SendConfirmationLinkAsync(ApplicationUser user, string email, string confirmationLink) 1574public Task SendPasswordResetCodeAsync(ApplicationUser user, string email, string resetCode) => 1577public Task SendPasswordResetLinkAsync(ApplicationUser user, string email, string resetLink) =>