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

          Line data    Source code
       1             : using System;
       2             : using System.Collections.Generic;
       3             : using System.Linq;
       4             : using Cqrs.Events;
       5             : using Cqrs.Authentication;
       6             : 
       7             : namespace Cqrs.Tests.Substitutes
       8             : {
       9             :         public class TestSnapshotEventStore : TestEventStore
      10           0 :         {
      11           0 :                 public override IEnumerable<IEvent<ISingleSignOnToken>> Get(Type aggregateType, Guid aggregateId, bool useLastEventOnly = false, int fromVersion = -1)
      12             :                 {
      13             :                         if (aggregateId == EmptyGuid || aggregateId == Guid.Empty)
      14             :                         {
      15             :                                 return new List<IEvent<ISingleSignOnToken>>();
      16             :                         }
      17             : 
      18             :                         return new List<IEvent<ISingleSignOnToken>>
      19             :                         {
      20             :                                 new TestAggregateDidSomething {Id = aggregateId, Version = 1},
      21             :                                 new TestAggregateDidSomethingElse {Id = aggregateId, Version = 2},
      22             :                                 new TestAggregateDidSomething {Id = aggregateId, Version = 3}
      23             :                         }
      24             :                         .Where(x => x.Version > fromVersion);
      25             :                 }
      26             :         }
      27             : }

Generated by: LCOV version 1.10