


“                  ”
    J.B. Rainsberger

using (var documentStore = new EmbeddableDocumentStore{
                           RunInMemory = true}.Initialize())
{
    using (var session = documentStore.OpenSession())
    {
        // Run complex test scenarious
    }
}
https://nuget.org/packages/Mongo2Go/
using (var runner = MongoDbRunner.Start())
{
    var collection = new MongoClient(runner.ConnectionString)
        .GetServer()
        .GetDatabase("TestDatabase")
        .GetCollection<TestDocument>("TestCollection");

    // Run complex test scenarious
}
2013 02-26 - Software Tests with Mongo db
2013 02-26 - Software Tests with Mongo db
2013 02-26 - Software Tests with Mongo db
2013 02-26 - Software Tests with Mongo db
2013 02-26 - Software Tests with Mongo db
2013 02-26 - Software Tests with Mongo db

2013 02-26 - Software Tests with Mongo db

  • 13.
  • 19.
    ” J.B. Rainsberger
  • 22.
  • 27.
    using (var documentStore= new EmbeddableDocumentStore{ RunInMemory = true}.Initialize()) { using (var session = documentStore.OpenSession()) { // Run complex test scenarious } }
  • 29.
  • 30.
    using (var runner= MongoDbRunner.Start()) { var collection = new MongoClient(runner.ConnectionString) .GetServer() .GetDatabase("TestDatabase") .GetCollection<TestDocument>("TestCollection"); // Run complex test scenarious }