public IDocumentStore CreateStore()
        {
            var documentStore = new Raven.Client.Client.EmbeddableDocumentStore
                                    {
                                        RunInMemory = true,
                                    };

            documentStore.Initialize();

            return documentStore;
        }
        public RavenDbSagaPersisterTests()
        {
            var documentStore = new Raven.Client.Client.EmbeddableDocumentStore { RunInMemory = true };
            documentStore.Initialize();

            //var documentStore = new Raven.Client.Document.DocumentStore {Url = "http://localhost:8080"};
            //documentStore.Initialize();

            //IDocumentSessionFactory documentSessionFactory = new DocumentSessionFactory(embeddableDocumentStore);
            IDocumentSessionFactory documentSessionFactory = new DocumentSessionFactory(documentStore);

            SagaPersister = new SagaPersister
            {
                DocumentSessionFactory = documentSessionFactory
            };
        }
Exemplo n.º 3
0
        public RavenDbSagaPersisterTests()
        {
            var documentStore = new Raven.Client.Client.EmbeddableDocumentStore {
                RunInMemory = true
            };

            documentStore.Initialize();

            //var documentStore = new Raven.Client.Document.DocumentStore {Url = "http://localhost:8080"};
            //documentStore.Initialize();

            //IDocumentSessionFactory documentSessionFactory = new DocumentSessionFactory(embeddableDocumentStore);
            IDocumentSessionFactory documentSessionFactory = new DocumentSessionFactory(documentStore);

            SagaPersister = new SagaPersister
            {
                DocumentSessionFactory = documentSessionFactory
            };
        }