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

          Line data    Source code
       1             : using System;
       2             : using Cqrs.Snapshots;
       3             : 
       4             : namespace Cqrs.Tests.Substitutes
       5             : {
       6             :     public class TestInMemorySnapshotStore : ISnapshotStore 
       7           0 :     {
       8           0 :         public Snapshot Get(Guid id)
       9             :         {
      10             :             return _snapshot;
      11             :         }
      12             : 
      13           0 :         public void Save(Snapshot snapshot)
      14             :         {
      15             :             if(snapshot.Version == 0)
      16             :                 FirstSaved = true;
      17             :             SavedVersion = snapshot.Version;
      18             :             _snapshot = snapshot;
      19             :         }
      20             : 
      21             :         private Snapshot _snapshot;
      22             :         public int SavedVersion { get; private set; }
      23             :         public bool FirstSaved { get; private set; }
      24             :     }
      25             : }

Generated by: LCOV version 1.10