< Summary

Information
Class: MRA.Infrastructure.Excel.Attributes.ExcelColumnAttribute
Assembly: MRA.Infrastructure
File(s): D:\a\MiguelRomerART\MiguelRomerART\MRA.Infrastructure\Excel\Attributes\ExcelColumnAttribute.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 20
Coverable lines: 20
Total lines: 30
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
get_Name()100%210%
get_Order()100%210%
get_URL()100%210%
get_IgnoreOnImport()100%210%
get_WrapText()100%210%
get_Width()100%210%
.ctor(...)100%210%

File(s)

D:\a\MiguelRomerART\MiguelRomerART\MRA.Infrastructure\Excel\Attributes\ExcelColumnAttribute.cs

#LineLine coverage
 1
 2namespace MRA.Infrastructure.Excel.Attributes;
 3
 4[AttributeUsage(AttributeTargets.Property)]
 5public class ExcelColumnAttribute : Attribute
 6{
 07    public string Name { get; }
 08    public int Order { get; }
 9
 010    public bool URL { get; }
 011    public bool IgnoreOnImport { get; }
 012    public bool WrapText { get; }
 013    public int Width { get; }
 14
 015    public ExcelColumnAttribute(
 016        string name,
 017        int order,
 018        int width = 40,
 019        bool url = false,
 020        bool ignoreOnImport = false,
 021        bool wrapText = false)
 22    {
 023        Name = name;
 024        Order = order;
 025        Width = width;
 026        URL = url;
 027        IgnoreOnImport = ignoreOnImport;
 028        WrapText = wrapText;
 029    }
 30}