2013 02-26 - Software Tests with Mongo db

1,952 views

Published on

Quality matters. That’s why we write software tests. They give us confidence to release complex business applications. In a schema-free world they are going to be our escape rope! This talk introduces some Unit Testing principles and separates them from Integration Tests. We will see how other databases solve common problems and how we can archive the same with MongoDB. Of course, you can expect some Test Driven Development (TDD).

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,952
On SlideShare
0
From Embeds
0
Number of Embeds
1,384
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

2013 02-26 - Software Tests with Mongo db

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

×