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; }
public void SetUp() { _errorHandler = new MockErrorHandler(); _fileValidator = new MockFileValidator(); _dispatcher = new UnitTestDispatcher(); _eventAggregator = new UnitTestEventAggregator(); _libOps = new MockLibraryOperations(_eventAggregator); _libraryView = new MockLibraryView(_dispatcher.Dispatcher, _libOps, _errorHandler, _fileValidator, null, _eventAggregator); _ops = _libraryView.Operations; _data = new Byte[100]; }