Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Localization_Tests of TenantManagement module. #7552

Merged
merged 1 commit into from
Feb 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using Microsoft.Extensions.Localization;
using System.Globalization;
using Microsoft.Extensions.Localization;
using Shouldly;
using Volo.Abp.Localization;
using Volo.Abp.TenantManagement.Localization;
using Xunit;

Expand All @@ -17,8 +19,23 @@ public Localization_Tests()
[Fact]
public void Test()
{
_stringLocalizer["TenantDeletionConfirmationMessage"].Value
.ShouldBe("Tenant '{0}' will be deleted. Do you confirm that?");
using (CultureHelper.Use("en"))
{
_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?");
}
}
}
}