예제 #1
0
        public SimpleFileSystemTests()
        {
            var settings = new Dictionary <string, string>
            {
                { "vfs:rootPath", "../../../Sftp/TestRootDir" }
            };

            var configuration = new ConfigurationBuilder()
                                .AddInMemoryCollection(settings)
                                .Build();

            fs = new SimpleFileSystem(configuration, logger.Object);
        }
예제 #2
0
        private void InitializeBasicConfigrations()
        {
            var srcPath  = Path.GetFullPath(Get("APP_SRC"));
            var destPath = Path.GetFullPath(Get("APP_DEST"));

            Src  = new SimpleFileSystem(srcPath);
            Dest = new SimpleFileSystem(destPath);
            Log  = Get("APP_LOG");

            if (Src == Dest)
            {
                throw new Exception("dest should be different from src.");
            }
        }