using System; using Volo.Abp.PermissionManagement.EntityFrameworkCore; namespace Volo.Abp.PermissionManagement { public abstract class PermissionTestBase : PermissionManagementTestBase { protected virtual void UsingDbContext(Action action) { using (var dbContext = GetRequiredService()) { action.Invoke(dbContext); } } protected virtual T UsingDbContext(Func action) { using (var dbContext = GetRequiredService()) { return action.Invoke(dbContext); } } } }