Class TestAzureDocumentDbDataStoreConnectionStringFactory
A AzureDocumentDbDataStoreConnectionStringFactory 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
TestAzureDocumentDbDataStoreConnectionStringFactory
Inherited Members
Namespace: Cqrs.Ninject.Azure.DocumentDb.Factories
Assembly: Cqrs.Ninject.Azure.DocumentDb.dll
Syntax
public class TestAzureDocumentDbDataStoreConnectionStringFactory : AzureDocumentDbDataStoreConnectionStringFactory, IAzureDocumentDbDataStoreConnectionStringFactory
Constructors
TestAzureDocumentDbDataStoreConnectionStringFactory(ILogger)
Instantiates a new instance of TestAzureDocumentDbDataStoreConnectionStringFactory defaulting to using ConfigurationManager
Declaration
public TestAzureDocumentDbDataStoreConnectionStringFactory(ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger |
Properties
DatabaseName
The name of the database currently being used.
Declaration
public static string DatabaseName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetAzureDocumentDbDatabaseName()
Gets the value of DatabaseName.
Declaration
public override string GetAzureDocumentDbDatabaseName()
Returns
Type | Description |
---|---|
System.String |
Overrides
UseSingleCollectionForAllDataStores()
Indicates if a different collection should be used per IEntity/IDataStore<TData> or a single collection used for all instances of IDataStore<TData> and IDataStore<TData>. Setting this to true can become expensive as each IEntity will have it's own collection. Check the relevant SDK/pricing models.
Declaration
public override bool UseSingleCollectionForAllDataStores()
Returns
Type | Description |
---|---|
System.Boolean | Always returns true. |