Documentation Coverage Report
Current view: top level - Ninject/Cqrs.Ninject.Mongo/Configuration - MongoModule.cs Hit Total Coverage
Version: 2.2 Artefacts: 5 5 100.0 %
Date: 2017-09-22

          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.Mongo.Factories;
      10             : using Ninject.Modules;
      11             : 
      12             : namespace Cqrs.Ninject.Mongo.Configuration
      13             : {
      14             :         /// <summary>
      15             :         /// A <see cref="INinjectModule"/> that wires up <see cref="MongoDataStoreConnectionStringFactory"/> as the <see cref="IMongoDataStoreConnectionStringFactory"/>.
      16             :         /// </summary>
      17             :         public class MongoModule : 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<IMongoDataStoreConnectionStringFactory>()
      46             :                                 .To<MongoDataStoreConnectionStringFactory>()
      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.10