Пример #1
0
 public MockLibrarySelector(Dispatcher dispatcher, MockLibraryOperations libraryOperations, MockErrorHandler errorHandler, MockFileValidator fileValidator, UnitTestEventAggregator eventAggregator)
 {
     _dispatcher        = dispatcher;
     _errorHandler      = errorHandler;
     _fileValidator     = fileValidator;
     _eventAggregator   = eventAggregator;
     _libraryOperations = libraryOperations ?? new MockLibraryOperations(_eventAggregator);
 }
Пример #2
0
 public MockLibraryView(Dispatcher dispatcher, MockLibraryOperations mockLibraryOps, MockErrorHandler errorHandler,
                        MockFileValidator fileValidator, string path, UnitTestEventAggregator eventAggregator)
 {
     Items            = new ObservableCollection <LibraryViewNode>();
     _eventAggregator = eventAggregator;
     _dispatcher      = dispatcher;
     _mockLibraryOps  = mockLibraryOps;
     _libraryOps      = new LibraryContentOperations(_mockLibraryOps, this, errorHandler, fileValidator, _dispatcher, _eventAggregator);
     Path             = path;
 }
Пример #3
0
 public MockErrorHandlerView()
 {
     MockErrorHandler = new MockErrorHandler();
     Errors           = new ObservableCollection <string>();
 }