Exemplo n.º 1
0
 public void SetUp()
 {
     _dataStore = new ProcessingChainDataStore();
     _changeCustomizationRegionViewCommandMock = new Mock <IChangeProcessingChainElementCustomizationRegionViewCommand>();
     _dropHandler = new Mock <IProcessingChainDropHandler>().Object;
     _dragHandler = new Mock <IProcessingChainDragHandler>().Object;
     _updateProcessingEngineCommand        = new Mock <IUpdateProcessingEngineCommand>().Object;
     _removeItemFromProcessingChainCommand = new Mock <IRemoveItemFromProcessingChainCommand>().Object;
     _availableProcessingChainElements     = new AvailableProcessingChainElements();
 }
        public ProcessingChainCustomizationViewModel(IProcessingChainBuilderDataStore processingChainDataStore,
                                                     IAvailableProcessingChainElements availableProcessingChainElements,
                                                     IChangeProcessingChainElementCustomizationRegionViewCommand changeImageProcessingChainElementCustomizationRegionViewCommand,
                                                     IUpdateProcessingEngineCommand updateProcessingEngineCommand,
                                                     IRemoveItemFromProcessingChainCommand removeItemFromProcessingChainCommand,
                                                     IProcessingChainDragHandler dragHandler,
                                                     IProcessingChainDropHandler dropHandler)
        {
            _processingChainDataStore = processingChainDataStore;
            _changeImageProcessingChainElementCustomizationRegionViewCommand = changeImageProcessingChainElementCustomizationRegionViewCommand;

            UpdateProcessingEngineCommand        = updateProcessingEngineCommand;
            RemoveItemFromProcessingChainCommand = removeItemFromProcessingChainCommand;

            DragHandler = dragHandler;
            DropHandler = dropHandler;

            AvailableImageProcessingAlgorithmTemplates = availableProcessingChainElements.ToList();
        }