public void TestFixtureSetUp() { var url = new MongoUrl(ConfigurationManager.ConnectionStrings["readmodel"].ConnectionString); var client = new MongoClient(url); var db = client.GetServer().GetDatabase(url.DatabaseName); db.Drop(); _collection = new CollectionWrapper <MyReadModel, string>(new MongoStorageFactory(db, new RebuildContext(false)), new SpyNotifier()); _projection = new MyProjection(_collection); _collection.Attach(_projection); }