public void Setup()
        {
            _dfp = new DatabaseFolderProvider();
            _mockData = MockComponentProvider.CreateDataProvider();
            _folderInfo = new Mock<IFolderInfo>();
            _fileInfo = new Mock<IFileInfo>();
            _folderManager = new Mock<IFolderManager>();
            _fileManager = new Mock<IFileManager>();

            FolderManager.RegisterInstance(_folderManager.Object);
            FileManager.RegisterInstance(_fileManager.Object);
        }
Exemplo n.º 2
0
 public void ClearFileContent(int fileId)
 {
     DatabaseFolderProvider.ClearFileContent(fileId);
 }
Exemplo n.º 3
0
 public void UpdateFileContent(int fileId, byte[] content)
 {
     DatabaseFolderProvider.UpdateFileContent(fileId, content);
 }