Skip to content

Instantly share code, notes, and snippets.

@NTCoding
Created December 1, 2012 19:42
Show Gist options
  • Select an option

  • Save NTCoding/4184455 to your computer and use it in GitHub Desktop.

Select an option

Save NTCoding/4184455 to your computer and use it in GitHub Desktop.
Raven_tests_base
public abstract class RavenTestsBase
{
protected IDocumentSession Session;
private EmbeddableDocumentStore store;
public EmbeddableDocumentStore Store { get; private set; }
public void BeginCleanSession()
{
Store = store = new EmbeddableDocumentStore
{
Configuration =
{
RunInMemory = true,
},
};
store.Initialize();
Session = store.OpenSession();
}
[TestFixtureTearDown]
public void TearDown()
{
if(Session != null) Session.Dispose();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment