|
@@ -35,7 +35,9 @@ public class OrderSnapshotApplicationTest : TestBase
|
|
|
private readonly ICommunityInfoRepository _communityInfoRepository;
|
|
|
private readonly IRedPackAuditRepository _redPackAuditRepository;
|
|
|
private readonly IRedPackRecordRepository _redPackRecordRepository;
|
|
|
- public OrderSnapshotApplicationTest(IAccountRepository accountRepository, IRepository<Role> roleRepository, UserController userController, IServiceScopeFactory scopeFactory, IRepository<User> userRepository, IHttpContextAccessor httpContextAccessor, IThirdIdentiyService thirdIdentiyService, IThirdAccountRepository thirdAccountRepository, OrderServiceMock orderServiceMock, ISystemDicDataCacheManager systemDicDataCacheManager, IOrderSnapshotRepository orderSnapshotRepository, IOrderSnapshotApplication orderSnapshotApplication, ISnapshotApplication snapshotApplication, IIndustryLogRepository industryLogRepository, ICommunityInfoRepository communityInfoRepository, IRedPackAuditRepository redPackAuditRepository, IRedPackRecordRepository redPackRecordRepository) : base(accountRepository, roleRepository, userController, scopeFactory, userRepository, httpContextAccessor, thirdIdentiyService, thirdAccountRepository)
|
|
|
+ private readonly ISnapshotLabelLogRepository _snapshotLabelLogRepository;
|
|
|
+
|
|
|
+ public OrderSnapshotApplicationTest(IAccountRepository accountRepository, IRepository<Role> roleRepository, UserController userController, IServiceScopeFactory scopeFactory, IRepository<User> userRepository, IHttpContextAccessor httpContextAccessor, IThirdIdentiyService thirdIdentiyService, IThirdAccountRepository thirdAccountRepository, OrderServiceMock orderServiceMock, ISystemDicDataCacheManager systemDicDataCacheManager, IOrderSnapshotRepository orderSnapshotRepository, IOrderSnapshotApplication orderSnapshotApplication, ISnapshotApplication snapshotApplication, IIndustryLogRepository industryLogRepository, ICommunityInfoRepository communityInfoRepository, IRedPackAuditRepository redPackAuditRepository, IRedPackRecordRepository redPackRecordRepository, ISnapshotLabelLogRepository snapshotLabelLogRepository) : base(accountRepository, roleRepository, userController, scopeFactory, userRepository, httpContextAccessor, thirdIdentiyService, thirdAccountRepository)
|
|
|
{
|
|
|
_orderServiceMock = orderServiceMock;
|
|
|
_systemDicDataCacheManager = systemDicDataCacheManager;
|
|
@@ -46,6 +48,7 @@ public class OrderSnapshotApplicationTest : TestBase
|
|
|
_communityInfoRepository = communityInfoRepository;
|
|
|
_redPackAuditRepository = redPackAuditRepository;
|
|
|
_redPackRecordRepository = redPackRecordRepository;
|
|
|
+ _snapshotLabelLogRepository = snapshotLabelLogRepository;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -116,6 +119,12 @@ public class OrderSnapshotApplicationTest : TestBase
|
|
|
.办理到一级部门(SetPaiDanYuan)
|
|
|
.办理到归档(Set一级部门)
|
|
|
.发布工单(SetZuoXi, inputLable.Select(m => new Kv(m.DicDataName, m.DicDataName)).ToList())
|
|
|
+ .StepHandle(async order => {
|
|
|
+ var log = _snapshotLabelLogRepository.Queryable().Where(m => m.OrderId == order.Id).First();
|
|
|
+ log.ShouldNotBeNull();
|
|
|
+ var snapshot = _orderSnapshotRepository.Get(order.Id);
|
|
|
+ snapshot.LabelName.ShouldBe(string.Join(',', inputLable.Select(m => m.DicDataName)),"label异常");
|
|
|
+ })
|
|
|
.部门审核网格员红包(Set政法委)
|
|
|
.部门审核网格员红包(Set应急管理局)
|
|
|
.StepHandle(async order =>
|