< Summary

Information
Class: DirectSight.Reporting.Builders.Rendering.Card
Assembly DirectSight
File(s): /home/runner/work/DirectSight/DirectSight/DirectSight/Reporting/Builders/Rendering/Card.cs
Line coverage
100%
Covered lines: 15
Uncovered lines: 0
Coverable lines: 15
Total lines: 53
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/DirectSight/DirectSight/DirectSight/Reporting/Builders/Rendering/Card.cs

#LineLine coverage
 1using System.Collections.Generic;
 2
 3namespace DirectSight.Reporting.Builders.Rendering;
 4
 5/// <summary>
 6/// Represents a card in the HTML report.
 7/// </summary>
 8public class Card
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="Card" /> class.
 12    /// </summary>
 13    /// <param name="title">The title.</param>
 3814    public Card(string title)
 3815    {
 3816        this.Title = title;
 3817    }
 18
 19    /// <summary>
 20    /// Initializes a new instance of the <see cref="Card" /> class.
 21    /// </summary>
 22    /// <param name="title">The title.</param>
 23    /// <param name="subtitle">The sub title.</param>
 24    /// <param name="subTitlePercentage">The percentage for the left border.</param>
 25    /// <param name="rows">The rows.</param>
 11426    public Card(string title, string subtitle, decimal? subTitlePercentage, params CardLineItem[] rows)
 11427    {
 11428        this.Title = title;
 11429        this.SubTitle = subtitle;
 11430        this.SubTitlePercentage = subTitlePercentage;
 11431        this.Rows = rows;
 11432    }
 33
 34    /// <summary>
 35    /// Gets the title.
 36    /// </summary>
 30437    public string Title { get; }
 38
 39    /// <summary>
 40    /// Gets the sub title.
 41    /// </summary>
 22842    public string SubTitle { get; }
 43
 44    /// <summary>
 45    /// Gets the percentage for the left border.
 46    /// </summary>
 12047    public decimal? SubTitlePercentage { get; }
 48
 49    /// <summary>
 50    /// Gets the rows.
 51    /// </summary>
 30452    public IReadOnlyCollection<CardLineItem> Rows { get; } = new List<CardLineItem>();
 53}