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