Class TestMongoEventStoreConnectionStringFactory
A IMongoDbEventStoreConnectionStringFactory 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
TestMongoEventStoreConnectionStringFactory
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.MongoDB.Tests.Integration
Assembly: Cqrs.MongoDB.Tests.Integration.dll
Syntax
public class TestMongoEventStoreConnectionStringFactory : 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
GetEventStoreConnectionString()
Gets the current connection string named "MongoDb-Test"
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 |