LCOV - code coverage report
Current view: top level - Ninject/Cqrs.Ninject.MongoDB/Configuration - TestMongoDbModule.cs Hit Total Coverage
Test: doc-coverage.info Lines: 2 2 100.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 Cqrs.MongoDB.Events;
      10             : using Cqrs.MongoDB.Factories;
      11             : 
      12             : namespace Cqrs.Ninject.MongoDB.Configuration
      13             : {
      14             :         /// <summary>
      15             :         /// A <see cref="MongoDbDataStoreModule"/> that assumes the connection string is keyed "MongoDb-Test".
      16             :         /// This will generated a random suffix to the database name so as to create a unique store for testing against.
      17             :         /// </summary>
      18             :         public class TestMongoDbDataStoreModule<TAuthenticationToken> : MongoDbEventStoreModule<TAuthenticationToken>
      19           1 :         {
      20             :                 /// <summary>
      21             :                 /// Register the all factories
      22             :                 /// </summary>
      23           1 :                 public override void RegisterFactories()
      24             :                 {
      25             :                         Bind<IMongoDbEventStoreConnectionStringFactory>()
      26             :                                 .To<TestMongoDbDataStoreConnectionStringFactory>()
      27             :                                 .InSingletonScope();
      28             :                         Bind<IMongoDbDataStoreConnectionStringFactory>()
      29             :                                 .To<TestMongoDbDataStoreConnectionStringFactory>()
      30             :                                 .InSingletonScope();
      31             :                 }
      32             :         }
      33             : }

Generated by: LCOV version 1.10