Documentation Coverage Report
Current view: top level - Cqrs.WebApi/Formatters/FormMultipart/Infrastructure - HttpFile.cs Hit Total Coverage
Version: 2.2 Artefacts: 3 3 100.0 %
Date: 2018-08-07 15:04:50

          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             : namespace Cqrs.WebApi.Formatters.FormMultipart.Infrastructure
      10             : {
      11             :         /// <summary>
      12             :         /// Represents a file.
      13             :         /// </summary>
      14             :         public class HttpFile
      15           1 :         {
      16             :                 /// <summary>
      17             :                 /// The name of the file.
      18             :                 /// </summary>
      19             :                 public string FileName { get; set; }
      20             : 
      21             :                 /// <summary>
      22             :                 /// The media type of the file.
      23             :                 /// </summary>
      24             :                 public string MediaType { get; set; }
      25             : 
      26             :                 /// <summary>
      27             :                 /// The content of the file
      28             :                 /// </summary>
      29             :                 public byte[] Buffer { get; set; }
      30             : 
      31             :                 /// <summary>
      32             :                 /// Instantiate and initialise a new instance of <see cref="HttpFile"/>
      33             :                 /// </summary>
      34           1 :                 public HttpFile() { }
      35             : 
      36             :                 /// <summary>
      37             :                 /// Instantiate and initialise a new instance of <see cref="HttpFile"/>
      38             :                 /// </summary>
      39           1 :                 public HttpFile(string fileName, string mediaType, byte[] buffer)
      40             :                 {
      41             :                         FileName = fileName;
      42             :                         MediaType = mediaType;
      43             :                         Buffer = buffer;
      44             :                 }
      45             :         }
      46             : }

Generated by: LCOV version 1.12