public void SetUp() { _fileValidator = new MockFileValidator(); _dispatcher = new UnitTestDispatcher(); _folder = new AutoKillFolder("TestLibrary", true); _path = Path.Combine(_folder.Path, "test"); }
public void SetUp() { _folder = new AutoKillFolder("TestTagsCache", true); Directory.CreateDirectory(_folder.Path); _path = Path.Combine(_folder.Path, "test"); _cache = new TagsCache(); _cache.Create(_path); }
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"); }
public void SetUp() { _errorHandler = new MockErrorHandler(); _fileValidator = new MockFileValidator(); _dispatcher = new UnitTestDispatcher(); _folder = new AutoKillFolder("TestLibrary", true); _path = Path.Combine(_folder.Path, "test"); _path2 = Path.Combine(_folder.Path, "test2"); _eventAggregator = new UnitTestEventAggregator(); _libraryOpenedName = string.Empty; _eventAggregator.AddListener(this); _selector = new LibrarySelector(_fileValidator, _errorHandler, _dispatcher.Dispatcher, _eventAggregator); }
public void SetUp() { _folder = new AutoKillFolder("TestBinariesCache", true); Directory.CreateDirectory(_folder.Path); _path = Path.Combine(_folder.Path, "test"); _data = new MockBinaryDataCache(); _cache = new BinariesCache(_data); _cache.Create(_path); var random = new Random(); _bytes = new byte[BinaryDataStorageClass.MaxBufferSize * 2]; random.NextBytes(_bytes); }
public void SetUp() { _fileValidator = new MockFileValidator(); _folder = new AutoKillFolder("TestLibrary", true); _path = Path.Combine(_folder.Path, "test"); _library = new Library(_path, _fileValidator); _library.Create(); _ops = _library.GetOperationsInterface(); _data = new Byte[100]; var random = new Random(); random.NextBytes(_data); _time = DateTime.Parse("2014-01-04 11:10"); }
public void SetUp() { _folder = new AutoKillFolder("TestBinaryDataCache", true); Directory.CreateDirectory(_folder.Path); _path = Path.Combine(_folder.Path, "test"); _cache = new BinaryDataCache(); _cache.Create(_path); var random = new Random(); _data = new byte[(int)(BinaryDataStorageClass.MaxBufferSize * 4.5)]; random.NextBytes(_data); _oneBlockData = new byte[BinaryDataStorageClass.MaxBufferSize]; Array.Copy(_data, _oneBlockData, _oneBlockData.Length); _tinyData = new byte[1]; Array.Copy(_data, _tinyData, _tinyData.Length); }