LCOV - code coverage report
Current view: top level - Ninject/Azure/Cqrs.Ninject.Azure.DocumentDb/Events - TestAzureDocumentDbEventStoreConnectionStringFactory.cs Hit Total Coverage
Test: doc-coverage.info Lines: 0 3 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.Events;
      11             : using cdmdotnet.Logging;
      12             : using Cqrs.Configuration;
      13             : 
      14             : namespace Cqrs.Ninject.Azure.DocumentDb.Events
      15             : {
      16             :         public class TestAzureDocumentDbEventStoreConnectionStringFactory : AzureDocumentDbEventStoreConnectionStringFactory
      17           0 :         {
      18             :                 private const string CallContextDatabaseNameKey = "AzureDocumentDbEventStoreConnectionStringFactory¿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 TestAzureDocumentDbEventStoreConnectionStringFactory(ILogger logger)
      33             :                         : base(logger, new ConfigurationManager())
      34             :                 {
      35             :                 }
      36             : 
      37             :                 #region Implementation of IAzureDocumentDbDataStoreConnectionStringFactory
      38             : 
      39           0 :                 public override string GetEventStoreConnectionDatabaseName()
      40             :                 {
      41             :                         return DatabaseName;
      42             :                 }
      43             : 
      44             :                 #endregion
      45             :         }
      46             : }

Generated by: LCOV version 1.10