public EPartitionType Should_parse_partition_type(EPartitionType configValue,
                                                   string partitionString)
 {
     using (var tempDir = new DisposableTempDir())
     {
         var meta = CreateMetadata <Quote>(configValue, tempDir.DirName);
         var pm   = CreatePartitionManager(meta, partitionString);
         var jc   = new JournalCore(meta, pm);
         return(meta.Settings.PartitionType);
     }
 }
        public string Should_save_value_in_partition_type_file(EPartitionType configValue,
                                                               string partitionString)
        {
            using (var tempDir = new DisposableTempDir())
            {
                var meta = CreateMetadata <Quote>(configValue, tempDir.DirName);
                var pm   = CreatePartitionManager(meta, partitionString);
                var jc   = new JournalCore(meta, pm);

                var defPath = meta.Settings.DefaultPath;
                var pfile   = Path.Combine(defPath, MetadataConstants.PARTITION_TYPE_FILENAME);

                return(File.ReadAllText(pfile));
            }
        }