public IPersistStreams EventStoreUsingAmbientTransaction()
        {
            var config = TestRavenConfig.GetDefaultConfig();

            config.ScopeOption = TransactionScopeOption.Required; // use an existing transaction-scope, if available

            var persistence = new InMemoryRavenPersistenceFactory(config).Build();

            persistence.Initialize();

            return(persistence);
        }
        private IPersistStreams NewEventStoreWithPartition(string partition)
        {
            RavenConfiguration config = TestRavenConfig.GetDefaultConfig();

            config.Partition = partition;

            IPersistStreams persistence = new InMemoryRavenPersistenceFactory(config).Build();

            persistence.Initialize();

            _instantiatedPersistence.Add(persistence);

            return(persistence);
        }