19 references to ApplicationUser
Microsoft.AspNetCore.Identity.FunctionalTests (19)
MapIdentityApiTests.cs (19)
170services.AddIdentityCore<ApplicationUser>().AddApiEndpoints().AddEntityFrameworkStores<ApplicationDbContext>();
245services.AddIdentityCore<ApplicationUser>().AddApiEndpoints().AddEntityFrameworkStores<ApplicationDbContext>();
330services.AddIdentityCore<ApplicationUser>().AddApiEndpoints().AddEntityFrameworkStores<ApplicationDbContext>();
386var userManager = app.Services.GetRequiredService<UserManager<ApplicationUser>>();
387var user = await userManager.FindByNameAsync(Email);
405var userManager = app.Services.GetRequiredService<UserManager<ApplicationUser>>();
406var user = await userManager.FindByNameAsync(Email);
574services.AddSingleton<IEmailSender<ApplicationUser>>(customEmailSender);
592await using var app = await CreateAppAsync<ApplicationUser, ApplicationDbContext>(services =>
602app.MapGroup("/identity2").MapIdentityApi<ApplicationUser>();
625await using var app = await CreateAppAsync<ApplicationUser, ApplicationDbContext>(services =>
627AddIdentityApiEndpoints<ApplicationUser, ApplicationDbContext>(services);
1329=> AddIdentityApiEndpoints<ApplicationUser, ApplicationDbContext>(services);
1339.AddIdentityCore<ApplicationUser>()
1345=> CreateAppAsync<ApplicationUser, ApplicationDbContext>(configureServices);
1521private sealed class TestCustomEmailSender(IEmailSender emailSender) : IEmailSender<ApplicationUser>
1526public Task SendConfirmationLinkAsync(ApplicationUser user, string email, string confirmationLink)
1533public Task SendPasswordResetCodeAsync(ApplicationUser user, string email, string resetCode) =>
1536public Task SendPasswordResetLinkAsync(ApplicationUser user, string email, string resetLink) =>