Ejemplo n.º 1
0
 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);
		}
Ejemplo n.º 3
0
        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));
        }
Ejemplo n.º 4
0
        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));
        }