< Summary

Information
Class: Services.TransactionUtilsServices.TransactionCommentDisplayModel
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/TransactionUtilsServices/TransactionCommentDisplayModel.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 35
Line coverage: 100%
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
get_Kind()100%11100%
get_DisplayMode()100%11100%
get_Raw()100%11100%
get_Meta()100%11100%
get_Sections()100%11100%
get_IsExpandable()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/TransactionUtilsServices/TransactionCommentDisplayModel.cs

#LineLine coverage
 1namespace Services.TransactionUtilsServices;
 2
 3public enum TransactionCommentDisplayKind
 4{
 5    Empty,
 6    Generating,
 7    Html,
 8    Plain,
 9    Structured
 10}
 11
 12public enum TransactionCommentDisplayMode
 13{
 14    Default,
 15    OrderHistoryCard
 16}
 17
 18public sealed class TransactionCommentDisplayModel
 19{
 4720    public TransactionCommentDisplayKind Kind { get; init; }
 21
 2122    public TransactionCommentDisplayMode DisplayMode { get; init; }
 23
 5624    public string Raw { get; init; } = string.Empty;
 25
 5026    public IReadOnlyList<TransactionCommentMetaItem> Meta { get; init; } = [];
 27
 6128    public IReadOnlyList<TransactionCommentBodySection> Sections { get; init; } = [];
 29
 1030    public bool IsExpandable { get; init; }
 31}
 32
 33public sealed record TransactionCommentMetaItem(string Label, string Value);
 34
 35public sealed record TransactionCommentBodySection(string? Title, string Body, bool IsWarning);