Exemplo n.º 1
0
        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);
        }
 public RavenPersistenceEngineFixture()
 {
     Persistence = (RavenPersistenceEngine) new InMemoryRavenPersistenceFactory(TestRavenConfig.GetDefaultConfig()).Build();
     Persistence.Initialize();
 }