LCOV - code coverage report
Current view: top level - Azure/Cqrs.Azure.DocumentDb/Entities - AzureDocumentDbEntity.cs Hit Total Coverage
Test: doc-coverage.info Lines: 0 1 0.0 %
Date: 2017-07-26

          Line data    Source code
       1             : using System;
       2             : using System.ComponentModel.DataAnnotations;
       3             : using System.Runtime.Serialization;
       4             : 
       5             : namespace Cqrs.Azure.DocumentDb.Entities
       6             : {
       7             :         [Serializable]
       8             :         [DataContract]
       9             :         public abstract class AzureDocumentDbEntity : Cqrs.Entities.Entity
      10           0 :         {
      11             :                 [Required]
      12             :                 [DataMember]
      13             :                 public override Guid Rsn { get; set; }
      14             : 
      15             :                 [Required]
      16             :                 [DataMember]
      17             :                 public virtual string id
      18             :                 {
      19             :                         get { return string.Format("{0}/{1:N}", GetType().FullName, Rsn); }
      20             :                         set
      21             :                         {
      22             :                                 Rsn = new Guid(value.Split('/')[1]);
      23             :                         }
      24             :                 }
      25             : 
      26             :                 [Required]
      27             :                 [DataMember]
      28             :                 public virtual string type
      29             :                 {
      30             :                         get { return GetType().FullName; }
      31             :                         set{ }
      32             :                 }
      33             : 
      34             :                 [DataMember]
      35             :                 public override int SortingOrder { get; set; }
      36             : 
      37             :                 [Required]
      38             :                 [DataMember]
      39             :                 public override bool IsLogicallyDeleted { get; set; }
      40             :         }
      41             : }

Generated by: LCOV version 1.10