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.
abp/modules/tenant-management/test/Volo.Abp.TenantManagement.D.../Volo/Abp/TenantManagement/Localization_Tests.cs

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?");
}
}
}