|
@@ -28,6 +28,7 @@ using Hotline.Api.Controllers.Bi;
|
|
|
using XF.Domain.Exceptions;
|
|
|
using System;
|
|
|
using DocumentFormat.OpenXml.Bibliography;
|
|
|
+using Hotline.Snapshot;
|
|
|
|
|
|
namespace Hotline.Tests.Mock;
|
|
|
public class OrderServiceMock
|
|
@@ -71,12 +72,12 @@ public class OrderServiceMock
|
|
|
_systemDicDataCacheManager = systemDicDataCacheManager;
|
|
|
}
|
|
|
|
|
|
- public IOrderServiceStartWorkflow CreateSnapshotOrder(Action action)
|
|
|
+ public IOrderServiceStartWorkflow CreateSnapshotOrder(Action action, string industryName = "电气焊作业申报")
|
|
|
{
|
|
|
action.Invoke();
|
|
|
var homePage = _snapshotController.GetHomePageAsync().GetAwaiter().GetResult();
|
|
|
var industry = homePage.Industrys
|
|
|
- .Where(m => m.IndustryType == EIndustryType.Clue)
|
|
|
+ .Where(m => m.Name == industryName)
|
|
|
.OrderBy(m => m.DisplayOrder)
|
|
|
.FirstOrDefault();
|
|
|
var pageBase = _snapshotController.GetIndustryBaseAsync(industry.Id).GetAwaiter().GetResult();
|