Created
December 1, 2012 19:42
-
-
Save NTCoding/4184455 to your computer and use it in GitHub Desktop.
Raven_tests_base
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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