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

          Line data    Source code
       1             : using System.Collections.Generic;
       2             : using System.Linq;
       3             : using Cqrs.Events;
       4             : using Cqrs.Authentication;
       5             : 
       6             : namespace Cqrs.Tests.Substitutes
       7             : {
       8             :         public class TestEventPublisher : IEventPublisher<ISingleSignOnToken>
       9           0 :         {
      10           0 :                 public void Publish<T>(T @event)
      11             :                         where T : IEvent<ISingleSignOnToken>
      12             :                 {
      13             :                         Published++;
      14             :                 }
      15             : 
      16           0 :                 public void Publish<TEvent>(IEnumerable<TEvent> events)
      17             :                         where TEvent : IEvent<ISingleSignOnToken>
      18             :                 {
      19             :                         Published = Published + events.Count();
      20             :                 }
      21             : 
      22             :                 public int Published { get; private set; }
      23             :         }
      24             : }

Generated by: LCOV version 1.10