Documentation Coverage Report
Current view: top level - Ninject/Cqrs.Ninject.MongoDB/Configuration - MongoDbDataStoreModule.cs Hit Total Coverage
Version: 2.2 Artefacts: 5 5 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 Cqrs.MongoDB.Factories;
      10             : using Ninject.Modules;
      11             : 
      12             : namespace Cqrs.Ninject.MongoDB.Configuration
      13             : {
      14             :         /// <summary>
      15             :         /// A <see cref="INinjectModule"/> that wires up <see cref="MongoDbDataStoreConnectionStringFactory"/> as the <see cref="IMongoDbDataStoreConnectionStringFactory"/>.
      16             :         /// </summary>
      17             :         public class MongoDbDataStoreModule : NinjectModule
      18           1 :         {
      19             :                 #region Overrides of NinjectModule
      20             : 
      21             :                 /// <summary>
      22             :                 /// Loads the module into the kernel.
      23             :                 /// </summary>
      24           1 :                 public override void Load()
      25             :                 {
      26             :                         RegisterFactories();
      27             :                         RegisterServices();
      28             :                         RegisterCqrsRequirements();
      29             :                 }
      30             : 
      31             :                 #endregion
      32             : 
      33             :                 /// <summary>
      34             :                 /// Register the all services
      35             :                 /// </summary>
      36           1 :                 public virtual void RegisterServices()
      37             :                 {
      38             :                 }
      39             : 
      40             :                 /// <summary>
      41             :                 /// Register the all factories
      42             :                 /// </summary>
      43           1 :                 public virtual void RegisterFactories()
      44             :                 {
      45             :                         Bind<IMongoDbDataStoreConnectionStringFactory>()
      46             :                                 .To<MongoDbDataStoreConnectionStringFactory>()
      47             :                                 .InSingletonScope();
      48             :                 }
      49             : 
      50             :                 /// <summary>
      51             :                 /// Register any CQRS requirements
      52             :                 /// </summary>
      53           1 :                 public virtual void RegisterCqrsRequirements()
      54             :                 {
      55             :                 }
      56             :         }
      57             : }

Generated by: LCOV version 1.12