public OperationsService( IOperationsFactory operationsFactory, IDirectoryService directoryService, IResourceOpeningService resourceOpeningService, IFileService fileService, IPathService pathService, IOperationsStateService operationsStateService) { _operationsFactory = operationsFactory; _directoryService = directoryService; _resourceOpeningService = resourceOpeningService; _fileService = fileService; _pathService = pathService; _operationsStateService = operationsStateService; }
public OperationsStatesListViewModel( IOperationsStateService operationsStateService, IOperationStateViewModelFactory operationStateViewModelFactory, IApplicationDispatcher applicationDispatcher, IDialogService dialogService, OperationsStatesConfiguration configuration) { _operationsStateService = operationsStateService; _operationStateViewModelFactory = operationStateViewModelFactory; _applicationDispatcher = applicationDispatcher; _dialogService = dialogService; _activeOperations = new ObservableCollection <IOperationStateViewModel>(); _finishedOperationsQueue = new LimitedSizeStack <IOperationStateViewModel>(configuration.MaximumFinishedOperationsCount); _operationsViewModelsDictionary = new ConcurrentDictionary <IOperation, IOperationStateViewModel>(); SubscribeToEvents(); }
public OperationsStateServiceTests() { _operationsStateService = new OperationsStateService(); }