示例#1
0
        public void SetUp()
        {
            _frame           = new UnitTestDispatcher();
            _tags            = new MockTagsCache();
            _paths           = new MockPathsCache(_tags);
            _data            = new MockBinaryDataCache();
            _binaries        = new MockBinariesCache(_data);
            _errorHandler    = new MockErrorHandler();
            _fileValidator   = new MockFileValidator();
            _eventAggregator = new UnitTestEventAggregator();

            CreateData();

            _view = new LibraryView(_tags, _paths, _binaries, _frame.Dispatcher, null, _errorHandler, _fileValidator, _eventAggregator);
            _view.AttachDisplay(new MockDisplay());
            _frame.RunDispatcher();
        }