< Summary

Information
Class: DirectSight.Reporting.Builders.Rendering.CardLineItem
Assembly DirectSight
File(s): /home/runner/work/DirectSight/DirectSight/DirectSight/Reporting/Builders/Rendering/CardLineItem.cs
Line coverage
100%
Covered lines: 23
Uncovered lines: 0
Coverable lines: 23
Total lines: 73
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%
.ctor(...)100%11100%

File(s)

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

#LineLine coverage
 1using System.Collections.Generic;
 2
 3namespace DirectSight.Reporting.Builders.Rendering;
 4
 5/// <summary>
 6/// Represents a line item within a card.
 7/// </summary>
 8public class CardLineItem
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="CardLineItem" /> class.
 12    /// </summary>
 13    /// <param name="header">The header.</param>
 14    /// <param name="text">The text.</param>
 15    /// <param name="tooltip">The tooltip.</param>
 31016    public CardLineItem(string header, string text, string tooltip)
 31017    {
 31018        this.Header = header;
 31019        this.Text = text;
 31020        this.Tooltip = tooltip;
 31021    }
 22
 23    /// <summary>
 24    /// Initializes a new instance of the <see cref="CardLineItem" /> class.
 25    /// </summary>
 26    /// <param name="header">The header.</param>
 27    /// <param name="text">The text.</param>
 28    /// <param name="tooltip">The tooltip.</param>
 29    /// <param name="alignment">The alignment.</param>
 7430    public CardLineItem(string header, string text, string tooltip, CardLineItemAlignment alignment)
 7431    {
 7432        this.Header = header;
 7433        this.Text = text;
 7434        this.Tooltip = tooltip;
 7435        this.Alignment = alignment;
 7436    }
 37
 38    /// <summary>
 39    /// Initializes a new instance of the <see cref="CardLineItem" /> class.
 40    /// </summary>
 41    /// <param name="header">The header.</param>
 42    /// <param name="links">The links.</param>
 3643    public CardLineItem(string header, params string[] links)
 3644    {
 3645        this.Header = header;
 3646        this.Links = links;
 3647    }
 48
 49    /// <summary>
 50    /// Gets the header.
 51    /// </summary>
 42052    public string Header { get; }
 53
 54    /// <summary>
 55    /// Gets the text.
 56    /// </summary>
 69257    public string Text { get; }
 58
 59    /// <summary>
 60    /// Gets the tooltip.
 61    /// </summary>
 38462    public string Tooltip { get; }
 63
 64    /// <summary>
 65    /// Gets the links.
 66    /// </summary>
 49267    public IReadOnlyCollection<string> Links { get; }
 68
 69    /// <summary>
 70    /// Gets the alignment.
 71    /// </summary>
 38472    public CardLineItemAlignment Alignment { get; }
 73}