Documentation Coverage Report
Current view: top level - Cqrs.MongoDB/Serialisers - MongoDbEventDeserialiser.cs Hit Total Coverage
Version: 2.2 Artefacts: 2 2 100.0 %
Date: 2017-09-22

          Line data    Source code
       1             : #region Copyright
       2             : // // -----------------------------------------------------------------------
       3             : // // <copyright company="Chinchilla Software Limited">
       4             : // //   Copyright Chinchilla Software Limited. All rights reserved.
       5             : // // </copyright>
       6             : // // -----------------------------------------------------------------------
       7             : #endregion
       8             : 
       9             : using System;
      10             : using Cqrs.Events;
      11             : 
      12             : namespace Cqrs.MongoDB.Serialisers
      13             : {
      14             :         /// <summary>
      15             :         /// Deserialises <see cref="IEvent{TAuthenticationToken}"/> from a serialised state.
      16             :         /// </summary>
      17             :         /// <typeparam name="TAuthenticationToken">The <see cref="Type"/> of the authentication token.</typeparam>
      18             :         public class MongoDbEventDeserialiser<TAuthenticationToken> : EventDeserialiser<TAuthenticationToken>
      19           1 :         {
      20             :                 #region Overrides of EventDeserialiser<TAuthenticationToken>
      21             : 
      22             :                 /// <summary>
      23             :                 /// Deserialise the provided <paramref name="eventData"/> into an <see cref="IEvent{TAuthenticationToken}"/>.
      24             :                 /// </summary>
      25             :                 /// <param name="eventData">The <see cref="EventData"/> to Deserialise.</param>
      26           1 :                 public override IEvent<TAuthenticationToken> Deserialise(EventData eventData)
      27             :                 {
      28             :                         return (IEvent<TAuthenticationToken>)eventData.Data;
      29             :                 }
      30             : 
      31             :                 #endregion
      32             :         }
      33             : }

Generated by: LCOV version 1.10