Example #1
0
        /// <summary>
        /// Creates and initializes the tape storage in the provided folder.
        /// </summary>
        /// <param name="folderPath">The folder path.</param>
        /// <returns></returns>
        public static FileTapeStorageFactory CreateTape(string folderPath)
        {
            var factory = new FileTapeStorageFactory(folderPath);

            factory.InitializeForWriting();
            return(factory);
        }
Example #2
0
        public static FileTapeStorageFactory CreateTape(this FileStorageConfig config, string subfolder = "tapes")
        {
            var path    = Path.Combine(config.FullPath, subfolder);
            var factory = new FileTapeStorageFactory(path);

            factory.InitializeForWriting();
            return(factory);
        }
Example #3
0
        public void TapeIsInFiles(string fullPath)
        {
            var factory = new FileTapeStorageFactory(fullPath);

            TapeIs(factory);
        }