< Summary

Information
Class: OzonDomains.Models.LabelPrintLog
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/LabelPrintLog.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 39
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_Id()100%11100%
get_FileName()100%11100%
get_OrderId()100%11100%
get_OccurredAtUtc()100%11100%
get_Source()100%11100%
get_ActorKind()100%11100%
get_ActorId()100%11100%
get_ActorName()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/LabelPrintLog.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2
 3namespace OzonDomains.Models;
 4
 5/// <summary>Зафиксированная выдача или создание сохранённой PDF-этикетки.</summary>
 6public class LabelPrintLog
 7{
 28    public long Id { get; set; }
 9
 10    [Required, MaxLength(500)]
 1511    public string FileName { get; set; } = string.Empty;
 12
 13    /// <summary>Заказ, для которого выдана этикетка. Для старых и несвязанных файлов может отсутствовать.</summary>
 414    public int? OrderId { get; set; }
 15
 1416    public DateTime OccurredAtUtc { get; set; } = DateTime.UtcNow;
 17
 818    public LabelPrintSource Source { get; set; }
 19
 720    public LabelPrintActorKind ActorKind { get; set; }
 21
 22    [MaxLength(450)]
 223    public string? ActorId { get; set; }
 24
 25    [Required, MaxLength(300)]
 1626    public string ActorName { get; set; } = string.Empty;
 27}
 28
 29public enum LabelPrintSource
 30{
 31    Studio2 = 0,
 32    PartnerApi = 1
 33}
 34
 35public enum LabelPrintActorKind
 36{
 37    StudioUser = 0,
 38    Partner = 1
 39}