[SetUp]
public void Setup()
{
var ravenContext = new RavenInMemoryContext();
DocumentStore = ravenContext.DocumentStore;
}
[TearDown]
public void TearDown()
{
DocumentStore.Dispose();
}
public class RavenInMemoryContext : IRavenDbContext
{
private readonly IDocumentStore _documentStore;
public RavenInMemoryContext()
{
_documentStore = new EmbeddableDocumentStore
{
Configuration =
{
RunInUnreliableYetFastModeThatIsNotSuitableForProduction = true,
RunInMemory = true
},
EnlistInDistributedTransactions = false
}.Initialize();
IndexCreation.CreateIndexes(typeof(OneOfOurIndexes).Assembly, _documentStore);
}
}
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ravendb/4kOCXcOGrAo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[TearDown]public void TearDown(){ DependencyManager.NinjectKernel.Components.Get<ICache>().Clear() ...}
--
You received this message because you are subscribed to a topic in the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ravendb/4kOCXcOGrAo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.