public Navigator(IPersister persister, IHost host, VirtualNodeFactory nodes, ContentSource sources) { this.persister = persister; this.host = host; this.virtualNodes = nodes; this.sources = sources; }
public ChildrenAjaxService(Navigator navigator, VirtualNodeFactory virtualNodes, IContentAdapterProvider adapters, IUrlParser urls) { this.navigator = navigator; this.virtualNodes = virtualNodes; this.adapters = adapters; this.urls = urls; }
public ChildrenAjaxService(AjaxRequestDispatcher dispatcher, Navigator navigator, VirtualNodeFactory nodes, IUrlParser urls) { this.dispatcher = dispatcher; this.navigator = navigator; this.nodes = nodes; this.urls = urls; }
/// <summary> /// Initializes a new instance of the <see cref="VirtualFolderInitializer"/> class. /// </summary> /// <param name="host">The host.</param> /// <param name="persister">The persister.</param> /// <param name="fs">The fs.</param> /// <param name="virtualNodes">The virtual nodes.</param> /// <param name="editConfig">The edit config.</param> public VirtualFolderInitializer(IHost host, IPersister persister, IFileSystem fs, VirtualNodeFactory virtualNodes, ConnectionMonitor monitor, UploadFolderSource folderSource, FolderNodeProvider nodeProvider) { this.host = host; this.persister = persister; this.virtualNodes = virtualNodes; this.monitor = monitor; this.folderSource = folderSource; this.nodeProvider = nodeProvider; }
/// <summary> /// Initializes a new instance of the <see cref="VirtualFolderInitializer"/> class. /// </summary> /// <param name="host">The host.</param> /// <param name="persister">The persister.</param> /// <param name="fs">The fs.</param> /// <param name="virtualNodes">The virtual nodes.</param> /// <param name="editConfig">The edit config.</param> public VirtualFolderInitializer(IHost host, IPersister persister, IFileSystem fs, VirtualNodeFactory virtualNodes, ConnectionMonitor monitor, EditSection editConfig, ImageSizeCache imageSizes, FolderNodeProvider nodeProvider) { this.host = host; this.persister = persister; this.virtualNodes = virtualNodes; this.monitor = monitor; this.folders = editConfig.UploadFolders; this.nodeProvider = nodeProvider; }
/// <summary> /// Initializes a new instance of the <see cref="VirtualFolderInitializer"/> class. /// </summary> /// <param name="host">The host.</param> /// <param name="persister">The persister.</param> /// <param name="fs">The fs.</param> /// <param name="virtualNodes">The virtual nodes.</param> /// <param name="editConfig">The edit config.</param> public VirtualFolderInitializer(IHost host, IPersister persister, IFileSystem fs, VirtualNodeFactory virtualNodes, DatabaseStatusCache dbStatus, EditSection editConfig, ImageSizeCache imageSizes) { this.host = host; this.persister = persister; this.fs = fs; this.virtualNodes = virtualNodes; this.dbStatus = dbStatus; this.folders = editConfig.UploadFolders; nodeProvider = new FolderNodeProvider(fs, persister, imageSizes); }
public void Fallbacks_ToVirtualNodes() { ContentItem root = CreateOneItem<AnItem>(1, "root", null); ContentItem item1 = CreateOneItem<AnItem>(2, "item1", root); var factory = new VirtualNodeFactory(); factory.Register(new FunctionalNodeProvider("/item1/hello/", (p) => new AnItem { Name = p })); Navigator n = new Navigator(persister, host, factory, source); ContentItem navigatedItem = n.Navigate("/item1/hello/world/"); Assert.That(navigatedItem.Name, Is.EqualTo("world/")); }
public ChildrenAjaxService(Navigator navigator, VirtualNodeFactory nodes, IUrlParser urls) { this.navigator = navigator; this.nodes = nodes; this.urls = urls; }