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

          Line data    Source code
       1             : using System;
       2             : using Cqrs.Domain;
       3             : using Cqrs.Authentication;
       4             : 
       5             : namespace Cqrs.Tests.Substitutes
       6             : {
       7             :         public class TestAggregate : AggregateRoot<ISingleSignOnToken>
       8           0 :         {
       9             :                 private TestAggregate()
      10             :                 {
      11             :                         ApplyChange(new TestAggregateCreated());
      12             :                         Version++;
      13             :                 }
      14             : 
      15           0 :                 public TestAggregate(Guid id)
      16             :                 {
      17             :                         Id = id;
      18             :                         ApplyChange(new TestAggregateCreated());
      19             :                         Version++;
      20             :                 }
      21             : 
      22             :                 public int DidSomethingCount;
      23             : 
      24           0 :                 public void DoSomething()
      25             :                 {
      26             :                         ApplyChange(new TestAggregateDidSomething());
      27             :                 }
      28             : 
      29           0 :                 public void DoSomethingElse()
      30             :                 {
      31             :                         ApplyChange(new TestAggregateDidSomethingElse());
      32             :                 }
      33             : 
      34           0 :                 public void Apply(TestAggregateDidSomething e)
      35             :                 {
      36             :                         DidSomethingCount++;
      37             :                 }
      38             :         }
      39             : }

Generated by: LCOV version 1.10