36

2013 02-26 - Software Tests with Mongo db

Embed Size (px)

DESCRIPTION

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).

Citation preview

Page 1: 2013 02-26 - Software Tests with Mongo db
Page 2: 2013 02-26 - Software Tests with Mongo db
Page 3: 2013 02-26 - Software Tests with Mongo db
Page 4: 2013 02-26 - Software Tests with Mongo db
Page 5: 2013 02-26 - Software Tests with Mongo db
Page 6: 2013 02-26 - Software Tests with Mongo db
Page 7: 2013 02-26 - Software Tests with Mongo db
Page 8: 2013 02-26 - Software Tests with Mongo db
Page 9: 2013 02-26 - Software Tests with Mongo db
Page 10: 2013 02-26 - Software Tests with Mongo db
Page 11: 2013 02-26 - Software Tests with Mongo db
Page 12: 2013 02-26 - Software Tests with Mongo db
Page 13: 2013 02-26 - Software Tests with Mongo db
Page 14: 2013 02-26 - Software Tests with Mongo db
Page 17: 2013 02-26 - Software Tests with Mongo db
Page 18: 2013 02-26 - Software Tests with Mongo db
Page 19: 2013 02-26 - Software Tests with Mongo db

“ ”J.B. Rainsberger

Page 20: 2013 02-26 - Software Tests with Mongo db
Page 21: 2013 02-26 - Software Tests with Mongo db
Page 22: 2013 02-26 - Software Tests with Mongo db
Page 23: 2013 02-26 - Software Tests with Mongo db
Page 24: 2013 02-26 - Software Tests with Mongo db
Page 25: 2013 02-26 - Software Tests with Mongo db
Page 26: 2013 02-26 - Software Tests with Mongo db
Page 27: 2013 02-26 - Software Tests with Mongo db

using (var documentStore = new EmbeddableDocumentStore{ RunInMemory = true}.Initialize()) { using (var session = documentStore.OpenSession()) { // Run complex test scenarious } }

Page 28: 2013 02-26 - Software Tests with Mongo db
Page 29: 2013 02-26 - Software Tests with Mongo db

https://nuget.org/packages/Mongo2Go/

Page 30: 2013 02-26 - Software Tests with Mongo db

using (var runner = MongoDbRunner.Start()) { var collection = new MongoClient(runner.ConnectionString) .GetServer() .GetDatabase("TestDatabase") .GetCollection<TestDocument>("TestCollection"); // Run complex test scenarious }

Page 31: 2013 02-26 - Software Tests with Mongo db
Page 32: 2013 02-26 - Software Tests with Mongo db
Page 33: 2013 02-26 - Software Tests with Mongo db
Page 34: 2013 02-26 - Software Tests with Mongo db
Page 35: 2013 02-26 - Software Tests with Mongo db
Page 36: 2013 02-26 - Software Tests with Mongo db