mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
706 B
25 lines
706 B
using Microsoft.Extensions.Localization;
|
|
using Shouldly;
|
|
using Volo.Abp.TenantManagement.Localization;
|
|
using Xunit;
|
|
|
|
namespace Volo.Abp.TenantManagement
|
|
{
|
|
public class Localization_Tests : AbpTenantManagementDomainTestBase
|
|
{
|
|
private readonly IStringLocalizer<AbpTenantManagementResource> _stringLocalizer;
|
|
|
|
public Localization_Tests()
|
|
{
|
|
_stringLocalizer = GetRequiredService<IStringLocalizer<AbpTenantManagementResource>>();
|
|
}
|
|
|
|
[Fact]
|
|
public void Test()
|
|
{
|
|
_stringLocalizer["TenantDeletionConfirmationMessage"].Value
|
|
.ShouldBe("Tenant '{0}' will be deleted. Do you confirm that?");
|
|
}
|
|
}
|
|
}
|