Open Source Web Application Framework for ASP.NET Core
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
791 B

using Microsoft.Extensions.Localization;
using Shouldly;
using Volo.Abp.Localization;
using Volo.Abp.MultiTenancy.Localization;
using Xunit;
namespace Volo.Abp.MultiTenancy;
public class MultiTenancyResource_Tests : MultiTenancyTestBase
{
[Fact]
public void MultiTenancyResource_Test()
{
var q = GetRequiredService<IStringLocalizer<AbpMultiTenancyResource>>();
using (CultureHelper.Use("en"))
{
GetRequiredService<IStringLocalizer<AbpMultiTenancyResource>>()["TenantNotFoundMessage"].Value.ShouldBe("Tenant not found!");
}
using (CultureHelper.Use("tr"))
{
GetRequiredService<IStringLocalizer<AbpMultiTenancyResource>>()["TenantNotFoundMessage"].Value.ShouldBe("Kiracı bulunamadı!");
}
}
}