< Summary

Information
Class: OzonDomains.ExcelMapping
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/ExcelMapping.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 14
Coverable lines: 14
Total lines: 44
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_Id()100%210%
get_Name()100%210%
get_SourceFileName()100%210%
get_DestinationFileName()100%210%
get_SourceSheet()100%210%
get_DestinationSheet()100%210%
get_SourceHeaderRow()100%210%
get_DestinationHeaderRow()100%210%
get_SourceDataStartRow()100%210%
get_DestinationDataStartRow()100%210%
get_ColumnMappingsJson()100%210%
get_CreatedDate()100%210%
get_ModifiedDate()100%210%
get_CreatedBy()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/ExcelMapping.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains;
 5
 6public class ExcelMapping
 7{
 8    [Key]
 9    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 010    public int Id { get; set; }
 11
 12    [Required]
 13    [MaxLength(255)]
 014    public string Name { get; set; } = null!;
 15
 16    [Required]
 17    [MaxLength(500)]
 018    public string SourceFileName { get; set; } = null!;
 19
 20    [Required]
 21    [MaxLength(500)]
 022    public string DestinationFileName { get; set; } = null!;
 23
 24    [Required]
 25    [MaxLength(100)]
 026    public string SourceSheet { get; set; } = null!;
 27
 28    [Required]
 29    [MaxLength(100)]
 030    public string DestinationSheet { get; set; } = null!;
 31
 032    public int SourceHeaderRow { get; set; } = 1;
 033    public int DestinationHeaderRow { get; set; } = 1;
 034    public int SourceDataStartRow { get; set; } = 2;
 035    public int DestinationDataStartRow { get; set; } = 2;
 36
 37    [Column(TypeName = "longtext")]
 038    public string ColumnMappingsJson { get; set; } = "{}";
 39
 040    public DateTime CreatedDate { get; set; } = DateTime.UtcNow;
 041    public DateTime? ModifiedDate { get; set; }
 42
 043    public string CreatedBy { get; set; } = string.Empty;
 44}