Plan 用于 CNC 默认保存和加载,Tools 用于流程图配方 xpm,Data 用于执行结果和中间图像,Report 为报告预留目录
This commit is contained in:
@@ -6,6 +6,7 @@ using System.Windows.Media.Imaging;
|
||||
using XP.Common.Logging.Interfaces;
|
||||
using XplorePlane.Models;
|
||||
using XplorePlane.Services;
|
||||
using XplorePlane.Services.Storage;
|
||||
using XplorePlane.Tests.Helpers;
|
||||
using XplorePlane.ViewModels;
|
||||
using Xunit;
|
||||
@@ -22,6 +23,7 @@ namespace XplorePlane.Tests.Pipeline
|
||||
private readonly Mock<IPipelineExecutionService> _mockExecSvc;
|
||||
private readonly Mock<IPipelinePersistenceService> _mockPersistSvc;
|
||||
private readonly Mock<ILoggerService> _mockLogger;
|
||||
private readonly Mock<IXpDataPathService> _mockDataPathService;
|
||||
|
||||
public PipelineEditorViewModelTests()
|
||||
{
|
||||
@@ -29,11 +31,19 @@ namespace XplorePlane.Tests.Pipeline
|
||||
_mockExecSvc = new Mock<IPipelineExecutionService>();
|
||||
_mockPersistSvc = new Mock<IPipelinePersistenceService>();
|
||||
_mockLogger = new Mock<ILoggerService>();
|
||||
_mockDataPathService = new Mock<IXpDataPathService>();
|
||||
_mockLogger.Setup(l => l.ForModule<PipelineEditorViewModel>()).Returns(_mockLogger.Object);
|
||||
_mockDataPathService.SetupGet(s => s.ToolsPath).Returns(Path.GetTempPath());
|
||||
}
|
||||
|
||||
private PipelineEditorViewModel CreateVm() =>
|
||||
new PipelineEditorViewModel(_mockImageSvc.Object, _mockExecSvc.Object, _mockPersistSvc.Object, new EventAggregator(), _mockLogger.Object);
|
||||
new PipelineEditorViewModel(
|
||||
_mockImageSvc.Object,
|
||||
_mockExecSvc.Object,
|
||||
_mockPersistSvc.Object,
|
||||
new EventAggregator(),
|
||||
_mockLogger.Object,
|
||||
_mockDataPathService.Object);
|
||||
|
||||
// ── 6.1 AddOperatorCommand ────────────────────────────────────
|
||||
|
||||
|
||||
Reference in New Issue
Block a user