Exemplo n.º 1
0
        public void FilesCanBeAdded()
        {
            var item = _ops.AddFile(_data, "test", new [] { "new" }, _time, @"the\test\path");

            Reload();
            Assert.That(_ops.Binaries.Any(b => b.Id == item.Id));
        }
Exemplo n.º 2
0
        public void AddFile(byte[] data, string name, string[] path, DateTime fileDateUtc, string fileContainerPath)
        {
            var binary = _library.AddFile(data, name, path ?? NewFilePath, fileDateUtc, fileContainerPath);

            _libraryView.AddNode(_libraryView.MakeNode(binary));
        }