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/identity/test/Volo.Abp.Identity.Domain.Tests/Volo/Abp/Identity/Localization_Tests.cs

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