Documentation Coverage Report
Current view: top level - Azure/Tests/Cqrs.Azure.ServiceBus.Tests.Unit - TestEvent.cs Hit Total Coverage
Version: 2.2 Artefacts: 1 1 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 System.Collections.Generic;
      11             : using System.Runtime.Serialization;
      12             : using Cqrs.Entities;
      13             : using Cqrs.Events;
      14             : using Cqrs.Messages;
      15             : 
      16             : namespace Cqrs.Azure.ServiceBus.Tests.Unit
      17             : {
      18             :         /// <summary>
      19             :         /// A Test <see cref="IEvent{TAuthenticationToken}"/>.
      20             :         /// </summary>
      21             :         [Serializable]
      22             :         [DataContract]
      23             :         public class TestEvent : Entity, IEvent<Guid>
      24           1 :         {
      25             :                 #region Implementation of IMessageWithAuthenticationToken<Guid>
      26             : 
      27             :                 /// <summary>
      28             :                 /// The authentication token of the entity that triggered the event to be raised.
      29             :                 /// </summary>
      30             :                 [DataMember]
      31             :                 public Guid AuthenticationToken { get; set; }
      32             : 
      33             :                 #endregion
      34             : 
      35             :                 #region Implementation of IEvent<Guid>
      36             : 
      37             :                 /// <summary>
      38             :                 /// The identifier of the event itself.
      39             :                 /// </summary>
      40             :                 [DataMember]
      41             :                 public Guid Id { get; set; }
      42             : 
      43             :                 /// <summary>
      44             :                 /// The new version number.
      45             :                 /// </summary>
      46             :                 [DataMember]
      47             :                 public int Version { get; set; }
      48             : 
      49             :                 /// <summary>
      50             :                 /// The date and time the event was raised or published.
      51             :                 /// </summary>
      52             :                 [DataMember]
      53             :                 public DateTimeOffset TimeStamp { get; set; }
      54             : 
      55             : 
      56             :                 #endregion
      57             : 
      58             :                 #region Implementation of IMessage
      59             : 
      60             :                 /// <summary>
      61             :                 /// An identifier used to group together several <see cref="IMessage"/>. Any <see cref="IMessage"/> with the same <see cref="CorrelationId"/> were triggered by the same initiating request.
      62             :                 /// </summary>
      63             :                 [DataMember]
      64             :                 public Guid CorrelationId { get; set; }
      65             : 
      66             :                 /// <summary>
      67             :                 /// The originating framework this message was sent from.
      68             :                 /// </summary>
      69             :                 [DataMember]
      70             :                 public string OriginatingFramework { get; set; }
      71             : 
      72             :                 /// <summary>
      73             :                 /// The frameworks this <see cref="IMessage"/> has been delivered to/sent via already.
      74             :                 /// </summary>
      75             :                 [DataMember]
      76             :                 public IEnumerable<string> Frameworks { get; set; }
      77             : 
      78             :                 #endregion
      79             :         }
      80             : }

Generated by: LCOV version 1.10