LCOV - code coverage report
Current view: top level - Cqrs.WebApi/Formatters/FormMultipart/Infrastructure/Logger - FormatterLoggerAdapter.cs Hit Total Coverage
Test: doc-coverage.info Lines: 0 4 0.0 %
Date: 2017-07-26

          Line data    Source code
       1             : using System;
       2             : using System.Net.Http.Formatting;
       3             : 
       4             : namespace Cqrs.WebApi.Formatters.FormMultipart.Infrastructure.Logger
       5             : {
       6             :         internal class FormatterLoggerAdapter : IFormDataConverterLogger
       7             :         {
       8             :                 private IFormatterLogger FormatterLogger { get; set; }
       9             : 
      10           0 :                 public FormatterLoggerAdapter(IFormatterLogger formatterLogger)
      11             :                 {
      12             :                         if(formatterLogger == null)
      13             :                                 throw new ArgumentNullException("formatterLogger");
      14             :                         FormatterLogger = formatterLogger;
      15             :                 }
      16             : 
      17           0 :                 public void LogError(string errorPath, Exception exception)
      18             :                 {
      19             :                         FormatterLogger.LogError(errorPath, exception);
      20             :                 }
      21             : 
      22           0 :                 public void LogError(string errorPath, string errorMessage)
      23             :                 {
      24             :                         FormatterLogger.LogError(errorPath, errorMessage);
      25             :                 }
      26             : 
      27           0 :                 public void EnsureNoErrors() 
      28             :                 {
      29             :                         //nothing to do
      30             :                 }
      31             :         }
      32             : }

Generated by: LCOV version 1.10