mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
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.
30 lines
856 B
30 lines
856 B
using Microsoft.Extensions.Localization;
|
|
using Shouldly;
|
|
using Volo.Abp.Ldap.Localization;
|
|
using Volo.Abp.Localization;
|
|
using Volo.Abp.Testing;
|
|
using Xunit;
|
|
|
|
namespace Volo.Abp.Ldap;
|
|
|
|
public class LdapResource_Tests : AbpIntegratedTest<AbpLdapTestModule>
|
|
{
|
|
protected override void SetAbpApplicationCreationOptions(AbpApplicationCreationOptions options)
|
|
{
|
|
options.UseAutofac();
|
|
}
|
|
|
|
[Fact]
|
|
public void LdapResource_Test()
|
|
{
|
|
using (CultureHelper.Use("en"))
|
|
{
|
|
GetRequiredService<IStringLocalizer<LdapResource>>()["DisplayName:Abp.Ldap.ServerHost"].Value.ShouldBe("Server host");
|
|
}
|
|
|
|
using (CultureHelper.Use("tr"))
|
|
{
|
|
GetRequiredService<IStringLocalizer<LdapResource>>()["DisplayName:Abp.Ldap.ServerHost"].Value.ShouldBe("Sunucu Ana Bilgisayarı");
|
|
}
|
|
}
|
|
}
|
|
|