Documentation Coverage Report
Current view: top level - Cqrs.MongoDB.Tests.Integration - TestMongoDbDataStoreFactory.cs Hit Total Coverage
Version: 2.2 Artefacts: 3 3 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 cdmdotnet.Logging;
      10             : using Cqrs.Azure.ServiceBus.Tests.Unit;
      11             : using Cqrs.MongoDB.Factories;
      12             : using MongoDB.Driver;
      13             : 
      14             : namespace Cqrs.MongoDB.Tests.Integration
      15             : {
      16             :         /// <summary>
      17             :         /// A <see cref="MongoDbDataStoreFactory"/>
      18             :         /// that provides a <see cref="IMongoCollection{TDocument}"/> or <see cref="TestEvent"/>.
      19             :         /// </summary>
      20             :         public class TestMongoDbDataStoreFactory : MongoDbDataStoreFactory
      21           1 :         {
      22             :                 /// <summary>
      23             :                 /// Instantiates a new instance of <see cref="TestMongoDbDataStoreFactory"/>
      24             :                 /// </summary>
      25           1 :                 public TestMongoDbDataStoreFactory(ILogger logger, IMongoDbDataStoreConnectionStringFactory mongoDbDataStoreConnectionStringFactory)
      26             :                         : base(logger, mongoDbDataStoreConnectionStringFactory)
      27             :                 {
      28             :                 }
      29             : 
      30             :                 /// <summary>
      31             :                 /// Get a <see cref="IMongoCollection{TestEvent}"/> of <see cref="TestEvent"/>
      32             :                 /// </summary>
      33           1 :                 public IMongoCollection<TestEvent> GetTestEventCollection()
      34             :                 {
      35             :                         return GetCollection<TestEvent>();
      36             :                 }
      37             :         }
      38             : }

Generated by: LCOV version 1.12