Date post: | 12-May-2015 |
Category: |
Documents |
Upload: | johannes-hoppe |
View: | 1,632 times |
Download: | 3 times |
“ ”J.B. Rainsberger
using (var documentStore = new EmbeddableDocumentStore{ RunInMemory = true}.Initialize()) { using (var session = documentStore.OpenSession()) { // Run complex test scenarious } }
using (var runner = MongoDbRunner.Start()) { var collection = new MongoClient(runner.ConnectionString) .GetServer() .GetDatabase("TestDatabase") .GetCollection<TestDocument>("TestCollection"); // Run complex test scenarious }