< Summary

Information
Class: Chronicis.Api.Services.DocumentContentResult
Assembly: Chronicis.Api
File(s): /home/runner/work/chronicis/chronicis/src/Chronicis.Api/Services/DocumentContentResult.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 10
Coverable lines: 10
Total lines: 35
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
get_DownloadUrl()100%210%
get_FileName()100%210%
get_ContentType()100%210%
get_FileSizeBytes()100%210%

File(s)

/home/runner/work/chronicis/chronicis/src/Chronicis.Api/Services/DocumentContentResult.cs

#LineLine coverage
 1namespace Chronicis.Api.Services;
 2
 3/// <summary>
 4/// Result containing a SAS URL for downloading a document directly from blob storage.
 5/// </summary>
 6public sealed class DocumentContentResult
 7{
 08    public DocumentContentResult(string downloadUrl, string fileName, string contentType, long fileSizeBytes)
 9    {
 010        DownloadUrl = downloadUrl;
 011        FileName = fileName;
 012        ContentType = contentType;
 013        FileSizeBytes = fileSizeBytes;
 014    }
 15
 16    /// <summary>
 17    /// Temporary SAS URL for downloading the document (valid for 15 minutes).
 18    /// </summary>
 019    public string DownloadUrl { get; }
 20
 21    /// <summary>
 22    /// Original filename of the document.
 23    /// </summary>
 024    public string FileName { get; }
 25
 26    /// <summary>
 27    /// MIME type of the document.
 28    /// </summary>
 029    public string ContentType { get; }
 30
 31    /// <summary>
 32    /// File size in bytes.
 33    /// </summary>
 034    public long FileSizeBytes { get; }
 35}