maliming
3 years ago
No known key found for this signature in database
GPG Key ID: 96224957E51C89E
1 changed files with
13 additions and
0 deletions
-
modules/identity/test/Volo.Abp.Identity.Domain.Tests/Volo/Abp/Identity/AbpIdentityDomainTestModule.cs
|
|
|
@ -5,9 +5,11 @@ using Volo.Abp.Identity.EntityFrameworkCore; |
|
|
|
using Volo.Abp.Identity.Localization; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.PermissionManagement; |
|
|
|
using Volo.Abp.PermissionManagement.Identity; |
|
|
|
using Volo.Abp.Threading; |
|
|
|
using Volo.Abp.VirtualFileSystem; |
|
|
|
using Volo.Abp.Uow; |
|
|
|
|
|
|
|
namespace Volo.Abp.Identity; |
|
|
|
|
|
|
|
@ -36,6 +38,17 @@ public class AbpIdentityDomainTestModule : AbpModule |
|
|
|
.Get<IdentityResource>() |
|
|
|
.AddVirtualJson("/Volo/Abp/Identity/LocalizationExtensions"); |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<PermissionManagementOptions>(options => |
|
|
|
{ |
|
|
|
options.IsDynamicPermissionStoreEnabled = false; |
|
|
|
options.SaveStaticPermissionsToDatabase = false; |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<AbpUnitOfWorkDefaultOptions>(options => |
|
|
|
{ |
|
|
|
options.TransactionBehavior = UnitOfWorkTransactionBehavior.Disabled; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public override void OnApplicationInitialization(ApplicationInitializationContext context) |
|
|
|
|