LCOV - code coverage report
Current view: top level - Cqrs.MongoDB.Tests.Integration - TestMongoEventStoreConnectionStringFactory.cs Hit Total Coverage
Test: doc-coverage.info Lines: 0 3 0.0 %
Date: 2017-07-26

          Line data    Source code
       1             : using System.Configuration;
       2             : using System.Runtime.Remoting.Messaging;
       3             : using Cqrs.MongoDB.Events;
       4             : 
       5             : namespace Cqrs.MongoDB.Tests.Integration
       6             : {
       7             :         public class TestMongoEventStoreConnectionStringFactory : IMongoDbEventStoreConnectionStringFactory
       8           0 :         {
       9             :                 private const string MongoDbConnectionStringKey = "MongoDb-Test";
      10             : 
      11             :                 private const string CallContextDatabaseNameKey = "MongoEventStoreConnectionStringFactory¿DatabaseName";
      12             : 
      13             :                 public static string DatabaseName
      14             :                 {
      15             :                         get
      16             :                         {
      17             :                                 return (string)CallContext.GetData(CallContextDatabaseNameKey);
      18             :                         }
      19             :                         set
      20             :                         {
      21             :                                 CallContext.SetData(CallContextDatabaseNameKey, value);
      22             :                         }
      23             :                 }
      24             : 
      25             :                 #region Implementation of IMongoDbEventStoreConnectionStringFactory
      26             : 
      27           0 :                 public string GetEventStoreConnectionString()
      28             :                 {
      29             :                         return ConfigurationManager.ConnectionStrings[MongoDbConnectionStringKey].ConnectionString;
      30             :                 }
      31             : 
      32           0 :                 public string GetEventStoreDatabaseName()
      33             :                 {
      34             :                         return DatabaseName;
      35             :                 }
      36             : 
      37             :                 #endregion
      38             :         }
      39             : }

Generated by: LCOV version 1.10