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); 1369=> AddIdentityApiEndpoints<ApplicationUser, ApplicationDbContext>(services); 1379.AddIdentityCore<ApplicationUser>() 1385=> CreateAppAsync<ApplicationUser, ApplicationDbContext>(configureServices); 1561private sealed class TestCustomEmailSender(IEmailSender emailSender) : IEmailSender<ApplicationUser> 1566public Task SendConfirmationLinkAsync(ApplicationUser user, string email, string confirmationLink) 1573public Task SendPasswordResetCodeAsync(ApplicationUser user, string email, string resetCode) => 1576public Task SendPasswordResetLinkAsync(ApplicationUser user, string email, string resetLink) =>