Пример #1
0
        public void Get_UploadFolder2()
        {
            fs.CreateDirectory("/upload2/");
            config.UploadFolders.Add("/upload2/");
            initializer.Start();
            vnf.Register(nodeProvider);

            var result = vnf.Get("/upload2/");

            Assert.That(result, Is.Not.Null);
            Assert.That(result.Name, Is.EqualTo("upload2"));
        }
Пример #2
0
        public void Get_UploadFolder2()
        {
            fs.CreateDirectory("/upload2/");
            config.UploadFolders.Add("/upload2/");
            initializer = new VirtualFolderInitializer(host, persister, fs, vnf, monitor, new UploadFolderSource(host, config), nodeProvider);

            initializer.Start();
            vnf.Register(nodeProvider);

            var result = vnf.Get("/upload2/");

            Assert.That(result, Is.Not.Null);
            Assert.That(result.Name, Is.EqualTo("upload2"));
        }