LCOV - code coverage report
Current view: top level - Cqrs/Domain - IUnitOfWork.cs Hit Total Coverage
Test: doc-coverage.info Lines: 3 3 100.0 %
Date: 2017-07-26

          Line data    Source code
       1             : #region Copyright
       2             : // // -----------------------------------------------------------------------
       3             : // // <copyright company="cdmdotnet Limited">
       4             : // //   Copyright cdmdotnet Limited. All rights reserved.
       5             : // // </copyright>
       6             : // // -----------------------------------------------------------------------
       7             : #endregion
       8             : 
       9             : using System;
      10             : 
      11             : namespace Cqrs.Domain
      12             : {
      13             :         /// <summary>
      14             :         /// This is a Unit of Work
      15             :         /// </summary>
      16             :         public interface IUnitOfWork<TAuthenticationToken>
      17             :         {
      18             :                 /// <summary>
      19             :                 /// Add an item into the <see cref="IUnitOfWork{TAuthenticationToken}"/> ready to be committed.
      20             :                 /// </summary>
      21           1 :                 void Add<TAggregateRoot>(TAggregateRoot aggregate)
      22             :                         where TAggregateRoot : IAggregateRoot<TAuthenticationToken>;
      23             : 
      24             :                 /// <summary>
      25             :                 /// Get an item from the <see cref="IUnitOfWork{TAuthenticationToken}"/> if it has already been loaded.
      26             :                 /// </summary>
      27           1 :                 TAggregateRoot Get<TAggregateRoot>(Guid id, int? expectedVersion = null)
      28             :                         where TAggregateRoot : IAggregateRoot<TAuthenticationToken>;
      29             : 
      30             :                 /// <summary>
      31             :                 /// Commit any changed <see cref="AggregateRoot{TAuthenticationToken}"/> added to this <see cref="IUnitOfWork{TAuthenticationToken}"/> via <see cref="Add{T}"/>
      32             :                 /// </summary>
      33           1 :                 void Commit();
      34             :         }
      35             : }

Generated by: LCOV version 1.10