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
684 B
25 lines
684 B
using Microsoft.Extensions.Localization;
|
|
using Shouldly;
|
|
using Volo.Abp.Identity;
|
|
using Volo.Abp.Identity.Localization;
|
|
using Xunit;
|
|
|
|
namespace Volo.Abp.TenantManagement
|
|
{
|
|
public class Localization_Tests : AbpIdentityDomainTestBase
|
|
{
|
|
private readonly IStringLocalizer<IdentityResource> _stringLocalizer;
|
|
|
|
public Localization_Tests()
|
|
{
|
|
_stringLocalizer = GetRequiredService<IStringLocalizer<IdentityResource>>();
|
|
}
|
|
|
|
[Fact]
|
|
public void Test()
|
|
{
|
|
_stringLocalizer["PersonalSettingsSavedMessage"].Value
|
|
.ShouldBe("Your personal settings has been saved successfully.");
|
|
}
|
|
}
|
|
} |