LCOV - code coverage report
Current view: top level - Ninject/Azure/Cqrs.Ninject.Azure.DocumentDb/Factories - TestAzureDocumentDbDataStoreConnectionStringFactory.cs Hit Total Coverage
Test: doc-coverage.info Lines: 0 4 0.0 %
Date: 2017-07-26

          Line data    Source code
       1             : #region Copyright
       2             : // // -----------------------------------------------------------------------
       3             : // // <copyright company="cdmdotnet Limited">
       4             : // //   Copyright cdmdotnet Limited. All rights reserved.
       5             : // // </copyright>
       6             : // // -----------------------------------------------------------------------
       7             : #endregion
       8             : 
       9             : using System.Runtime.Remoting.Messaging;
      10             : using Cqrs.Azure.DocumentDb.Factories;
      11             : using cdmdotnet.Logging;
      12             : using Cqrs.Configuration;
      13             : 
      14             : namespace Cqrs.Ninject.Azure.DocumentDb.Factories
      15             : {
      16             :         public class TestAzureDocumentDbDataStoreConnectionStringFactory : AzureDocumentDbDataStoreConnectionStringFactory
      17           0 :         {
      18             :                 private const string CallContextDatabaseNameKey = "AzureDocumentDbDataStoreConnectionStringFactory¿DatabaseName";
      19             : 
      20             :                 public static string DatabaseName
      21             :                 {
      22             :                         get
      23             :                         {
      24             :                                 return (string)CallContext.GetData(CallContextDatabaseNameKey);
      25             :                         }
      26             :                         set
      27             :                         {
      28             :                                 CallContext.SetData(CallContextDatabaseNameKey, value);
      29             :                         }
      30             :                 }
      31             : 
      32           0 :                 public TestAzureDocumentDbDataStoreConnectionStringFactory(ILogger logger)
      33             :                         : base(logger, new ConfigurationManager())
      34             :                 {
      35             :                 }
      36             : 
      37             :                 #region Implementation of IAzureDocumentDbDataStoreConnectionStringFactory
      38             : 
      39           0 :                 public override string GetAzureDocumentDbDatabaseName()
      40             :                 {
      41             :                         return DatabaseName;
      42             :                 }
      43             : 
      44             :                 #region Overrides of AzureDocumentDbDataStoreConnectionStringFactory
      45             : 
      46           0 :                 public override bool UseOneCollectionPerDataStore()
      47             :                 {
      48             :                         return true;
      49             :                 }
      50             : 
      51             :                 #endregion
      52             : 
      53             :                 #endregion
      54             :         }
      55             : }

Generated by: LCOV version 1.10