public IEnumerable <FileSystemInfoContract> GetChildItem(DirectoryInfoContract parent) { return(ExecuteInSemaphore(() => { return gateway.GetChildItem(rootName, parent.Id).Select(item => { FixupSize(item, id => gateway.GetContent(rootName, id)); return item; }); }, nameof(GetChildItem))); }
private TestDirectoryFixture(ICloudGateway gateway, RootName root, string apiKey, IDictionary <string, string> parameters, string path) { this.gateway = gateway; this.root = root; gateway.GetDrive(root, apiKey, parameters); var rootDirectory = gateway.GetRoot(root, apiKey, parameters); var residualDirectory = gateway.GetChildItem(root, rootDirectory.Id).SingleOrDefault(f => f.Name == path) as DirectoryInfoContract; if (residualDirectory != null) { gateway.RemoveItem(root, residualDirectory.Id, true); } directory = gateway.NewDirectoryItem(root, rootDirectory.Id, path); }
public IEnumerable <FileSystemInfoContract> GetChildItem(DirectoryInfoContract parent) { return(ExecuteInSemaphore(() => { return _gateway.GetChildItem(_rootName, parent.Id); }, nameof(GetChildItem))); }
public IEnumerable <FileSystemInfoContract> GetChildItem(DirectoryInfoContract parent) { return(gateway.GetChildItem(rootName, parent.Id)); }