Browse Source
Merge pull request #7552 from abpframework/maliming/Localization_Tests
Update Localization_Tests of TenantManagement module.
pull/7557/head
liangshiwei
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
20 additions and
3 deletions
-
modules/tenant-management/test/Volo.Abp.TenantManagement.Domain.Tests/Volo/Abp/TenantManagement/Localization_Tests.cs
|
|
@ -1,5 +1,7 @@ |
|
|
using Microsoft.Extensions.Localization; |
|
|
using System.Globalization; |
|
|
|
|
|
using Microsoft.Extensions.Localization; |
|
|
using Shouldly; |
|
|
using Shouldly; |
|
|
|
|
|
using Volo.Abp.Localization; |
|
|
using Volo.Abp.TenantManagement.Localization; |
|
|
using Volo.Abp.TenantManagement.Localization; |
|
|
using Xunit; |
|
|
using Xunit; |
|
|
|
|
|
|
|
|
@ -17,8 +19,23 @@ namespace Volo.Abp.TenantManagement |
|
|
[Fact] |
|
|
[Fact] |
|
|
public void Test() |
|
|
public void Test() |
|
|
{ |
|
|
{ |
|
|
_stringLocalizer["TenantDeletionConfirmationMessage"].Value |
|
|
using (CultureHelper.Use("en")) |
|
|
.ShouldBe("Tenant '{0}' will be deleted. Do you confirm that?"); |
|
|
{ |
|
|
|
|
|
_stringLocalizer["TenantDeletionConfirmationMessage"].Value |
|
|
|
|
|
.ShouldBe("Tenant '{0}' will be deleted. Do you confirm that?"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
using (CultureHelper.Use("en-gb")) |
|
|
|
|
|
{ |
|
|
|
|
|
_stringLocalizer["TenantDeletionConfirmationMessage"].Value |
|
|
|
|
|
.ShouldBe("Tenant '{0}' will be deleted. Is that OK?"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
using (CultureHelper.Use("tr")) |
|
|
|
|
|
{ |
|
|
|
|
|
_stringLocalizer["TenantDeletionConfirmationMessage"].Value |
|
|
|
|
|
.ShouldBe("'{0}' isimli müşteri silinecektir. Onaylıyor musunuz?"); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|