Class TestMongoDataStoreConnectionStringFactory
A IMongoDataStoreConnectionStringFactory that enables you to set a database name with DatabaseName. This means you can randomly generate your own database name per test.
Inheritance
System.Object
TestMongoDataStoreConnectionStringFactory
Namespace: Cqrs.Ninject.Mongo
Assembly: Cqrs.Ninject.Mongo.dll
Syntax
public class TestMongoDataStoreConnectionStringFactory : object, IMongoDataStoreConnectionStringFactory
Properties
DatabaseName
The name of the database currently being used.
Declaration
public static string DatabaseName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetMongoConnectionString()
Gets the current connection string.
Declaration
public string GetMongoConnectionString()
Returns
Type | Description |
---|---|
System.String |
Implements
GetMongoDatabaseName()
Gets the value of DatabaseName.
Declaration
public string GetMongoDatabaseName()
Returns
Type | Description |
---|---|
System.String |