Ejemplo n.º 1
0
        public void SetUp()
        {
            container = new Container(new RavenDbRegistry());
            container.Inject(new RavenDbSettings
            {
                RunInMemory = true
            });

            nested = container.GetNestedContainer();

            documents = nested.GetInstance <IDocumentStore>();
            documents.Conventions.DefaultQueryingConsistency = ConsistencyOptions.QueryYourWrites;

            persistor = nested.GetInstance <RavenPersistor>();
            boundary  = nested.GetInstance <ISessionBoundary>();
        }
        public void SetUp()
        {
            container = new Container(new RavenDbRegistry());
            container.Inject(new RavenDbSettings
            {
                RunInMemory = true
            });

            nested = container.GetNestedContainer();

            documents = nested.GetInstance<IDocumentStore>();
            documents.Conventions.DefaultQueryingConsistency = ConsistencyOptions.QueryYourWrites;

            persistor = nested.GetInstance<RavenPersistor>();
            boundary = nested.GetInstance<ISessionBoundary>();
        }