LCOV - code coverage report
Current view: top level - Azure/Cqrs.Azure.BlobStorage - TableStorageStoreExtensions.cs Hit Total Coverage
Test: doc-coverage.info Lines: 0 3 0.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             : using System.Collections.Generic;
      11             : using System.Linq;
      12             : using Cqrs.DataStores;
      13             : using Cqrs.Entities;
      14             : 
      15             : namespace Cqrs.Azure.BlobStorage
      16             : {
      17             :         public static class TableStorageStoreExtensions
      18           0 :         {
      19           0 :                 public static TData GetByKeyAndRow<TData>(this IDataStore<TData> datastore, Guid rsn)
      20             :                         where TData : IEntity
      21             :                 {
      22             :                         var rawDatastore = (TableStorageStore<EntityTableEntity<TData>, TData>)datastore;
      23             :                         return rawDatastore.GetByKeyAndRow(rsn).Entity;
      24             :                 }
      25             : 
      26           0 :                 public static IEnumerable<TData> GetByKey<TData>(this IDataStore<TData> datastore)
      27             :                         where TData : IEntity
      28             :                 {
      29             :                         var rawDatastore = (TableStorageStore<EntityTableEntity<TData>, TData>)datastore;
      30             :                         return rawDatastore.GetByKey().Select(entity => entity.Entity);
      31             :                 }
      32             :         }
      33             : }

Generated by: LCOV version 1.10