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.Dispatch; | ||||
|  | ||||
| @ -43,7 +43,8 @@ public abstract class DispatchTestBase<TStartupModule> : AbpIntegratedTest<TStar | ||||
|         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 DispatchTestBase<TStartupModule> : AbpIntegratedTest<TStar | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user