|
@@ -42,8 +42,9 @@ public class SnapshotApplicationTest : TestBase
|
|
|
private readonly ISessionContext _sessionContext;
|
|
|
private readonly IGuiderSystemService _guiderSystemService;
|
|
|
private readonly ISystemSettingCacheManager _systemSettingCacheManager;
|
|
|
+ private readonly ICommunityInfoRepository _communityInfoRepository;
|
|
|
|
|
|
- public SnapshotApplicationTest(IAccountRepository accountRepository, IRepository<Role> roleRepository, UserController userController, IServiceScopeFactory scopeFactory, IRepository<User> userRepository, IHttpContextAccessor httpContextAccessor, ISnapshotApplication snapshotApplication, IIdentityAppService identityAppService, IRepository<RedPackRecord> redPackRecordRepository, IIndustryApplication industryApplication, IIndustryRepository industryRepository, IFileRepository fileRepository, OrderServiceMock orderServiceMock, IOrderRepository orderRepository, IOrderSnapshotRepository orderSnapshotRepository, IThirdIdentiyService thirdService, IThirdAccountRepository thirdAccount, ISessionContext sessionContext, IGuiderSystemService guiderSystemService, ISystemSettingCacheManager systemSettingCacheManager) : base(accountRepository, roleRepository, userController, scopeFactory, userRepository, httpContextAccessor, thirdService, thirdAccount)
|
|
|
+ public SnapshotApplicationTest(IAccountRepository accountRepository, IRepository<Role> roleRepository, UserController userController, IServiceScopeFactory scopeFactory, IRepository<User> userRepository, IHttpContextAccessor httpContextAccessor, ISnapshotApplication snapshotApplication, IIdentityAppService identityAppService, IRepository<RedPackRecord> redPackRecordRepository, IIndustryApplication industryApplication, IIndustryRepository industryRepository, IFileRepository fileRepository, OrderServiceMock orderServiceMock, IOrderRepository orderRepository, IOrderSnapshotRepository orderSnapshotRepository, IThirdIdentiyService thirdService, IThirdAccountRepository thirdAccount, ISessionContext sessionContext, IGuiderSystemService guiderSystemService, ISystemSettingCacheManager systemSettingCacheManager, ICommunityInfoRepository communityInfoRepository) : base(accountRepository, roleRepository, userController, scopeFactory, userRepository, httpContextAccessor, thirdService, thirdAccount)
|
|
|
{
|
|
|
_snapshotApplication = snapshotApplication;
|
|
|
_identityAppService = identityAppService;
|
|
@@ -58,6 +59,7 @@ public class SnapshotApplicationTest : TestBase
|
|
|
_sessionContext = sessionContext;
|
|
|
_guiderSystemService = guiderSystemService;
|
|
|
_systemSettingCacheManager = systemSettingCacheManager;
|
|
|
+ _communityInfoRepository = communityInfoRepository;
|
|
|
}
|
|
|
|
|
|
[Fact]
|
|
@@ -449,8 +451,8 @@ public class SnapshotApplicationTest : TestBase
|
|
|
MemberMobile = "18181552753",
|
|
|
ReplyContent = "到现场查实,存在安全隐患",
|
|
|
OrgId = "4828",
|
|
|
- OrgName = "瓦市村村民委员会",
|
|
|
- OrgFullName = "四川省/自贡市/沿滩区/永安镇/瓦市村村民委员会",
|
|
|
+ OrgName = "瓦市村民委员会" + DateTime.Now.ToString("ss"),
|
|
|
+ OrgFullName = "四川省/自贡市/沿滩区/永安镇/瓦市村村民委员会" + DateTime.Now.ToString("ss"),
|
|
|
DepartmentNo = "510311106206",
|
|
|
ParentOrgId = "4821",
|
|
|
ReplyFileList = new List<string>
|
|
@@ -465,5 +467,9 @@ public class SnapshotApplicationTest : TestBase
|
|
|
orderReply.MemberName.ShouldBe(replyDto.MemberName);
|
|
|
orderReply.NetworkRemark.ShouldBe(replyDto.ReplyContent);
|
|
|
orderReply.ReplyDate.Value.ToString("yyyy-MM-dd hh:mm:ss").ShouldBe(replyDto.ReplyDate);
|
|
|
+ var community = await _communityInfoRepository.GetAsync(replyDto.OrgId);
|
|
|
+ community.ShouldNotBeNull();
|
|
|
+ community.Name.ShouldBe(replyDto.OrgName);
|
|
|
+ community.FullName.ShouldBe(replyDto.OrgFullName);
|
|
|
}
|
|
|
}
|