17 references to AddLoginAsync
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (3)
SqlStoreOnlyUsersTestBase.cs (1)
146IdentityResultAssert.IsSuccess(await manager.AddLoginAsync(user, new UserLoginInfo("provider", user.Id.ToString(), "display")));
SqlStoreTestBase.cs (1)
249IdentityResultAssert.IsSuccess(await manager.AddLoginAsync(user, new UserLoginInfo("provider", user.Id.ToString(), "display")));
UserStoreEncryptPersonalDataTest.cs (1)
83IdentityResultAssert.IsSuccess(await manager.AddLoginAsync(user, login));
Microsoft.AspNetCore.Identity.InMemory.Test (1)
ControllerTest.cs (1)
102IdentityResultAssert.IsSuccess(await userManager.AddLoginAsync(user, new UserLoginInfo(authScheme, externalId, "whatever")));
Microsoft.AspNetCore.Identity.Specification.Tests (5)
UserManagerSpecificationTests.cs (5)
581IdentityResultAssert.IsSuccess(await manager.AddLoginAsync(user, new UserLoginInfo(provider, providerKey, display))); 602IdentityResultAssert.IsSuccess(await manager.AddLoginAsync(user, login)); 643IdentityResultAssert.IsSuccess(await manager.AddLoginAsync(user, login)); 904IdentityResultAssert.IsSuccess(await manager.AddLoginAsync(user, login)); 905var result = await manager.AddLoginAsync(user, login);
Microsoft.AspNetCore.Identity.Test (4)
UserManagerTest.cs (4)
1052await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.AddLoginAsync(null, null)); 1366await Assert.ThrowsAsync<ArgumentNullException>("login", async () => await manager.AddLoginAsync(null, null)); 1393async () => await manager.AddLoginAsync(null, new UserLoginInfo("", "", ""))); 1497await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.AddLoginAsync(null, null));
Microsoft.AspNetCore.Identity.UI (4)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
191result = await _userManager.AddLoginAsync(user, info);
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (1)
153var result = await _userManager.AddLoginAsync(user, info);
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
191result = await _userManager.AddLoginAsync(user, info);
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (1)
153var result = await _userManager.AddLoginAsync(user, info);