LCOV - code coverage report
Current view: top level - Cqrs.Tests/Cache - When_getting_wrong_events_from_event_store.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 System.Runtime.Caching;
       3             : using Cqrs.Cache;
       4             : using Cqrs.Authentication;
       5             : using Cqrs.Tests.Substitutes;
       6             : using NUnit.Framework;
       7             : 
       8             : namespace Cqrs.Tests.Cache
       9             : {
      10             :         [TestFixture]
      11             :         public class When_getting_earlier_than_expected_events_from_event_store
      12           0 :         {
      13             :                 private CacheRepository<ISingleSignOnToken> _rep;
      14             :                 private TestAggregate _aggregate;
      15             : 
      16             :                 [SetUp]
      17           0 :                 public void Setup()
      18             :                 {
      19             :                         _rep = new CacheRepository<ISingleSignOnToken>(new TestAggregateRepository(), new TestEventStoreWithBugs());
      20             :                         _aggregate = _rep.Get<TestAggregate>(Guid.NewGuid());
      21             :                 }
      22             : 
      23             :                 [Test]
      24           0 :                 public void Should_get_events_from_start()
      25             :                 {
      26             :                         var aggregate =_rep.Get<TestAggregate>(_aggregate.Id);
      27             :                         Assert.That(aggregate.Version, Is.EqualTo(4));
      28             :                 }
      29             :         }
      30             : }

Generated by: LCOV version 1.10