Documentation Coverage Report
Current view: top level - Ninject/Cqrs.Ninject.MongoDB/Configuration - TestMongoDbModule.cs Hit Total Coverage
Version: 2.2 Artefacts: 2 2 100.0 %
Date: 2018-08-07 15:04:50

          Line data    Source code
       1             : #region Copyright
       2             : // // -----------------------------------------------------------------------
       3             : // // <copyright company="Chinchilla Software Limited">
       4             : // //   Copyright Chinchilla Software Limited. All rights reserved.
       5             : // // </copyright>
       6             : // // -----------------------------------------------------------------------
       7             : #endregion
       8             : 
       9             : using System;
      10             : using Cqrs.MongoDB.Events;
      11             : using Cqrs.MongoDB.Factories;
      12             : using Ninject.Modules;
      13             : 
      14             : namespace Cqrs.Ninject.MongoDB.Configuration
      15             : {
      16             :         /// <summary>
      17             :         /// A <see cref="INinjectModule"/> that wires up <see cref="TestMongoDbDataStoreConnectionStringFactory"/> as the
      18             :         /// <see cref="IMongoDbEventStoreConnectionStringFactory"/> and <see cref="IMongoDbDataStoreConnectionStringFactory"/>.
      19             :         /// </summary>
      20             :         /// <typeparam name="TAuthenticationToken">The <see cref="Type"/> of the authentication token.</typeparam>
      21             :         public class TestMongoDbDataStoreModule<TAuthenticationToken>
      22             :                 : MongoDbEventStoreModule<TAuthenticationToken>
      23           1 :         {
      24             :                 /// <summary>
      25             :                 /// Register the all factories
      26             :                 /// </summary>
      27           1 :                 public override void RegisterFactories()
      28             :                 {
      29             :                         Bind<IMongoDbEventStoreConnectionStringFactory>()
      30             :                                 .To<TestMongoDbDataStoreConnectionStringFactory>()
      31             :                                 .InSingletonScope();
      32             :                         Bind<IMongoDbDataStoreConnectionStringFactory>()
      33             :                                 .To<TestMongoDbDataStoreConnectionStringFactory>()
      34             :                                 .InSingletonScope();
      35             :                 }
      36             :         }
      37             : }

Generated by: LCOV version 1.12