Documentation Coverage Report
Current view: top level - Ninject/Azure/Cqrs.Ninject.Azure.DocumentDb/Configuration - TestAzureDocumentDbEventStoreModule.cs Hit Total Coverage
Version: 2.2 Artefacts: 2 2 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 System;
      10             : using Cqrs.Azure.DocumentDb.Events;
      11             : using Cqrs.Events;
      12             : using Cqrs.Ninject.Azure.DocumentDb.Events;
      13             : using Ninject.Modules;
      14             : 
      15             : namespace Cqrs.Ninject.Azure.DocumentDb.Configuration
      16             : {
      17             :         /// <summary>
      18             :         /// A <see cref="INinjectModule"/> that wires up <see cref="AzureDocumentDbEventStoreConnectionStringFactory"/> as the
      19             :         /// <see cref="IAzureDocumentDbEventStoreConnectionStringFactory"/>.
      20             :         /// </summary>
      21             :         /// <typeparam name="TAuthenticationToken">The <see cref="Type"/> of the authentication token.</typeparam>
      22             :         public class TestAzureDocumentDbEventStoreModule<TAuthenticationToken> : AzureDocumentDbEventStoreModule<TAuthenticationToken>
      23           1 :         {
      24             :                 /// <summary>
      25             :                 /// Register the <see cref="IAzureDocumentDbEventStoreConnectionStringFactory"/> and <see cref="IEventStore{TAuthenticationToken}"/>
      26             :                 /// </summary>
      27           1 :                 public override void RegisterEventStore()
      28             :                 {
      29             :                         Bind<IAzureDocumentDbEventStoreConnectionStringFactory>()
      30             :                                 .To<TestAzureDocumentDbEventStoreConnectionStringFactory>()
      31             :                                 .InSingletonScope();
      32             : 
      33             :                         Bind<IEventStore<TAuthenticationToken>>()
      34             :                                 .To<AzureDocumentDbEventStore<TAuthenticationToken>>()
      35             :                                 .InSingletonScope();
      36             :                 }
      37             :         }
      38             : }

Generated by: LCOV version 1.10