Ejemplo n.º 1
0
        public void SetUp()
        {
            _folder = new AutoKillFolder("TestPathsCache", true);
            Directory.CreateDirectory(_folder.Path);
            _path = Path.Combine(_folder.Path, "test");

            _tags  = new MockTagsCache();
            _cache = new PathsCache(_tags);
            _cache.Create(_path);

            _tags.AddOrGet("A");
        }
Ejemplo n.º 2
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();
        }