public RavenDbCacheStoreFixture() { this.documentStore = A.Fake<IDocumentStore>(); this.documentSession = A.Fake<IDocumentSession>(); A.CallTo(() => documentStore.OpenSession()).Returns(this.documentSession); this.cacheStore = new RavenDbCacheStore(this.documentStore); }
public RavenDbCacheStoreFixture() { this.documentStore = A.Fake <IDocumentStore>(); this.documentSession = A.Fake <IDocumentSession>(); A.CallTo(() => documentStore.OpenSession()).Returns(this.documentSession); this.cacheStore = new RavenDbCacheStore(this.documentStore); }
public RavenDbCacheStoreFixture() { documentStore = new EmbeddableDocumentStore { RunInMemory = true }; documentStore.Initialize(); cacheStore = new RavenDbCacheStore(documentStore); }