Fix typo (#2066)
This commit is contained in:
parent
7421ba8087
commit
01c1f7b187
|
|
@ -108,7 +108,7 @@ namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal
|
||||||
var userId = await _userManager.GetUserIdAsync(user);
|
var userId = await _userManager.GetUserIdAsync(user);
|
||||||
if (!result.Succeeded)
|
if (!result.Succeeded)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException($"Unexpected error occurred deleteing user with ID '{userId}'.");
|
throw new InvalidOperationException($"Unexpected error occurred deleting user with ID '{userId}'.");
|
||||||
}
|
}
|
||||||
|
|
||||||
await _signInManager.SignOutAsync();
|
await _signInManager.SignOutAsync();
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test
|
||||||
IdentityResultAssert.IsSuccess(await roleMgr.DeleteAsync(role));
|
IdentityResultAssert.IsSuccess(await roleMgr.DeleteAsync(role));
|
||||||
Assert.Null(await roleMgr.FindByNameAsync(roleName));
|
Assert.Null(await roleMgr.FindByNameAsync(roleName));
|
||||||
Assert.False(await roleMgr.RoleExistsAsync(roleName));
|
Assert.False(await roleMgr.RoleExistsAsync(roleName));
|
||||||
// REVIEW: We should throw if deleteing a non empty role?
|
// REVIEW: We should throw if deleting a non empty role?
|
||||||
roles = await userMgr.GetRolesAsync(user);
|
roles = await userMgr.GetRolesAsync(user);
|
||||||
|
|
||||||
Assert.Empty(roles);
|
Assert.Empty(roles);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue