Class TestMongoDbDataStoreConnectionStringFactory
A IMongoDbDataStoreConnectionStringFactory and IMongoDbEventStoreConnectionStringFactory that enables you to set a database name with DatabaseName. This means you can randomly generate your own database name per test. Both IEventStore<TAuthenticationToken> and IDataStore<TData> use the same connection string and database name.
Inheritance
System.Object
TestMongoDbDataStoreConnectionStringFactory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.Ninject.MongoDB
Assembly: Cqrs.Ninject.MongoDB.dll
Syntax
public class TestMongoDbDataStoreConnectionStringFactory : IMongoDbDataStoreConnectionStringFactory, IMongoDbEventStoreConnectionStringFactory
Properties
DatabaseName
The name of the database currently being used.
Declaration
public static string DatabaseName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetDataStoreConnectionString()
Gets the current connection string.
Declaration
public string GetDataStoreConnectionString()
Returns
Type | Description |
---|---|
System.String |
Implements
GetDataStoreDatabaseName()
Gets the value of DatabaseName.
Declaration
public string GetDataStoreDatabaseName()
Returns
Type | Description |
---|---|
System.String |
Implements
GetEventStoreConnectionString()
Gets the current connection string.
Declaration
public string GetEventStoreConnectionString()
Returns
Type | Description |
---|---|
System.String |
Implements
GetEventStoreDatabaseName()
Gets the value of DatabaseName.
Declaration
public string GetEventStoreDatabaseName()
Returns
Type | Description |
---|---|
System.String |