chore 优化代码
This commit is contained in:
@ -3,8 +3,8 @@ using System.Threading.Tasks;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Volo.Abp;
|
||||
using Volo.Abp.Modularity;
|
||||
using Volo.Abp.Uow;
|
||||
using Volo.Abp.Testing;
|
||||
using Volo.Abp.Uow;
|
||||
|
||||
namespace KonSoft.Payment;
|
||||
|
||||
@ -43,7 +43,8 @@ public abstract class PaymentTestBase<TStartupModule> : AbpIntegratedTest<TStart
|
||||
return WithUnitOfWorkAsync(new AbpUnitOfWorkOptions(), func);
|
||||
}
|
||||
|
||||
protected virtual async Task<TResult> WithUnitOfWorkAsync<TResult>(AbpUnitOfWorkOptions options, Func<Task<TResult>> func)
|
||||
protected virtual async Task<TResult> WithUnitOfWorkAsync<TResult>(AbpUnitOfWorkOptions options,
|
||||
Func<Task<TResult>> func)
|
||||
{
|
||||
using (var scope = ServiceProvider.CreateScope())
|
||||
{
|
||||
@ -57,4 +58,4 @@ public abstract class PaymentTestBase<TStartupModule> : AbpIntegratedTest<TStart
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user