Method | Description | |
---|---|---|
Export ( string database, string collection, string outputFile ) : void |
Executes Mongoexport on the associated MongoDB Instace
|
|
Import ( string database, string collection, string inputFile, bool drop ) : void |
Executes Mongoimport on the associated MongoDB Instace
|
|
Start ( string dataDirectory = MongoDbDefaults.DataDirectory, string searchPatternOverride = null ) : |
Starts Multiple MongoDB instances with each call On dispose: kills them and deletes their data directory Should be used for integration tests |
|
StartForDebugging ( string dataDirectory = MongoDbDefaults.DataDirectory, string searchPatternOverride = null ) : |
Only starts one single MongoDB instance (even on multiple calls), does not kill it, does not delete data Should be used for local debugging only WARNING: one single instance on one single machine is not a suitable setup for productive environments!!! |
|
StartForDebuggingUnitTest ( IProcessWatcher processWatcher, IPortWatcher portWatcher, IFileSystem fileSystem, IMongoDbProcessStarter processStarter, IMongoBinaryLocator mongoBin ) : |
||
StartUnitTest ( IPortPool portPool, IFileSystem fileSystem, IMongoDbProcessStarter processStarter, IMongoBinaryLocator mongoBin ) : |
Method | Description | |
---|---|---|
MakeMongoBinarysExecutable ( ) : void | ||
MongoDbRunner ( IPortPool portPool, IFileSystem fileSystem, IMongoDbProcessStarter processStarter, IMongoBinaryLocator mongoBin, string dataDirectory ) : System |
usage: integration tests
|
|
MongoDbRunner ( IProcessWatcher processWatcher, IPortWatcher portWatcher, IFileSystem fileSystem, IMongoDbProcessStarter processStarter, IMongoBinaryLocator mongoBin, string dataDirectory ) : System |
usage: local debugging
|
public Export ( string database, string collection, string outputFile ) : void | ||
database | string | |
collection | string | |
outputFile | string | |
return | void |
public Import ( string database, string collection, string inputFile, bool drop ) : void | ||
database | string | |
collection | string | |
inputFile | string | |
drop | bool | |
return | void |
public static Start ( string dataDirectory = MongoDbDefaults.DataDirectory, string searchPatternOverride = null ) : |
||
dataDirectory | string | |
searchPatternOverride | string | |
return |
public static StartForDebugging ( string dataDirectory = MongoDbDefaults.DataDirectory, string searchPatternOverride = null ) : |
||
dataDirectory | string | |
searchPatternOverride | string | |
return |
public static StartForDebuggingUnitTest ( IProcessWatcher processWatcher, IPortWatcher portWatcher, IFileSystem fileSystem, IMongoDbProcessStarter processStarter, IMongoBinaryLocator mongoBin ) : |
||
processWatcher | IProcessWatcher | |
portWatcher | IPortWatcher | |
fileSystem | IFileSystem | |
processStarter | IMongoDbProcessStarter | |
mongoBin | IMongoBinaryLocator | |
return |
public static StartUnitTest ( IPortPool portPool, IFileSystem fileSystem, IMongoDbProcessStarter processStarter, IMongoBinaryLocator mongoBin ) : |
||
portPool | IPortPool | |
fileSystem | IFileSystem | |
processStarter | IMongoDbProcessStarter | |
mongoBin | IMongoBinaryLocator | |
return |