LCOV - code coverage report
Current view: top level - Cqrs.MongoDB/Events/Indexes - ByAggregateIdAndVersionMongoDbIndex.cs Hit Total Coverage
Test: doc-coverage.info Lines: 0 2 0.0 %
Date: 2017-07-26

          Line data    Source code
       1             : #region Copyright
       2             : // // -----------------------------------------------------------------------
       3             : // // <copyright company="cdmdotnet Limited">
       4             : // //   Copyright cdmdotnet Limited. All rights reserved.
       5             : // // </copyright>
       6             : // // -----------------------------------------------------------------------
       7             : #endregion
       8             : 
       9             : using System;
      10             : using System.Linq.Expressions;
      11             : using Cqrs.MongoDB.DataStores.Indexes;
      12             : 
      13             : namespace Cqrs.MongoDB.Events.Indexes
      14             : {
      15             :         public class ByAggregateIdAndVersionMongoDbIndex : MongoDbIndex<MongoDbEventData>
      16           0 :         {
      17           0 :                 public ByAggregateIdAndVersionMongoDbIndex()
      18             :                 {
      19             :                         Selectors = new Expression<Func<MongoDbEventData, object>>[]
      20             :                         {
      21             :                                 entity => entity.AggregateId,
      22             :                                 entity => entity.Version
      23             :                         };
      24             : 
      25             :                         IsUnique = true;
      26             :                 }
      27             :         }
      28             : }

Generated by: LCOV version 1.10