public void SetUp() { Mapper.AddProfile(new FormEventBsonDocumentProfile()); _mongoDbProxy = new MongoDbProxy("TestDatabase"); _collectionName = "FormEvents"; if (!_mongoDbProxy.CollectionExists(_collectionName)) _mongoDbProxy.CreateCollection(_collectionName); }
public void SetUp() { Mapper.AddProfile(new FormEventBsonDocumentProfile()); _entityMapper = new EntityMapper(Mapper.Engine); _mongoDbProxy = new MongoDbProxy(); _collectionName = "DefaultTestCollection"; if (!_mongoDbProxy.CollectionExists(_collectionName)) _mongoDbProxy.CreateCollection(_collectionName); }