public FileResultsReader(IMessageFormatter serializer, IFolderStructure filePathAlgorithm, string rootPath, string pipeline, string messageType) { _serializer = serializer; _filePathAlgorithm = filePathAlgorithm; _rootPath = rootPath; _pipeline = pipeline; _messageType = messageType; }
public void GetFolderStructure_GetFolderStructure_IFolderStructure() { //arrange FolderModel model = new FolderModel(); //act IFolderStructure result = model.GetFolderStructure(); //assert Assert.IsInstanceOfType(result, typeof(IFolderStructure)); }
public DataLakeStoreOutputManager(IMessageFormatter serializer, IFolderStructure folderStructure, ServiceClientCredentials serviceClientCredentials, string subscriptionId, string dlsAccountName) { _serializer = serializer; _folderStructure = folderStructure; _serviceClientCredentials = serviceClientCredentials; _subscriptionId = subscriptionId; _dlsAccountName = dlsAccountName; _dlsFileSystemClient = new DataLakeStoreFileSystemManagementClient(serviceClientCredentials); }
private IFolderStructure GetFolderTree(Folder folder) { IFolderStructure tree = BranchFactory.Create(folder); List <Folder> childFolders = _context.Folders.Where(z => z.ParentFolder == folder.FolderId).ToList(); if (childFolders == null || childFolders.Count == 0) { return(tree); } IFolderStructure branch; foreach (Folder f in childFolders) { branch = BranchFactory.Create(f); branch.ChildBranches = GetFolderTree(f).ChildBranches; tree.ChildBranches.Add(branch); } return(tree); }
public FileOutputManager(IMessageFormatter serializer, IFolderStructure folderStructure, string rootPath = @"C:\") { _serializer = serializer; _folderStructure = folderStructure; _rootPath = rootPath; }