LCOV - code coverage report
Current view: top level - Cqrs.Sql/DataStores - SimpleExpressionReplacer.cs Hit Total Coverage
Test: doc-coverage.info Lines: 0 3 0.0 %
Date: 2017-07-26

          Line data    Source code
       1             : using System.Linq.Expressions;
       2             : 
       3             : namespace Cqrs.Sql.DataStores
       4             : {
       5             :         public class SimpleExpressionReplacer : ExpressionVisitor
       6           0 :         {
       7             :                 private readonly Expression _replacement;
       8             : 
       9             :                 private readonly Expression _toFind;
      10             : 
      11           0 :                 public override Expression Visit(Expression node)
      12             :                 {
      13             :                         return node == _toFind ? _replacement : base.Visit(node);
      14             :                 }
      15             : 
      16           0 :                 public SimpleExpressionReplacer(Expression toFind, Expression replacement)
      17             :                 {
      18             :                         _toFind = toFind;
      19             :                         _replacement = replacement;
      20             :                 }
      21             :         }
      22             : }

Generated by: LCOV version 1.10