Browse Source
Update AbpIdentityUserValidator_Tests.cs
pull/17212/head
maliming
3 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
1 additions and
1 deletions
-
modules/identity/test/Volo.Abp.Identity.AspNetCore.Tests/Volo/Abp/Identity/AspNetCore/AbpIdentityUserValidator_Tests.cs
|
|
|
@ -31,6 +31,6 @@ public class AbpIdentityUserValidator_Tests : AbpIdentityAspNetCoreTestBase |
|
|
|
identityResult.Succeeded.ShouldBeFalse(); |
|
|
|
identityResult.Errors.Count().ShouldBe(1); |
|
|
|
identityResult.Errors.First().Code.ShouldBe("InvalidUserName"); |
|
|
|
identityResult.Errors.First().Description.ShouldBe(Localizer["Volo.Abp.Identity:YouCanNotUseAnotherUsersEmailAsYourUsername", "user1@volosoft.com"]); |
|
|
|
identityResult.Errors.First().Description.ShouldBe(Localizer["InvalidUserName", "user1@volosoft.com"]); |
|
|
|
} |
|
|
|
} |
|
|
|
|