public DefaultDirectorySelector(IHost host, EditSection config) { this.host = host; mode = config.DefaultDirectory.Mode; defaultFolderPath = config.DefaultDirectory.RootPath; uploadFolders = new List <string>(config.UploadFolders.Folders); }
public DefaultDirectorySelector(IHost host, EditSection config) { this.host = host; mode = config.DefaultDirectory.Mode; defaultFolderPath = config.DefaultDirectory.RootPath; uploadFolders = new List<string>(config.UploadFolders.Folders); }
public void CanFind_ShadowFolder_WithoutDefaultFolderRoot(DefaultDirectoryMode stragegy, string expectedPath) { config.DefaultDirectory.Mode = stragegy; DefaultDirectorySelector finder = new DefaultDirectorySelector(host, config); string path = finder.GetDefaultDirectory(item2); Assert.That(path, Is.EqualTo(expectedPath)); }