< Summary

Information
Class: OzonDomains.Models.ArmtekEtp.ArmtekEtpSyncRun
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/ArmtekEtp/ArmtekEtpSyncRun.cs
Line coverage
100%
Covered lines: 13
Uncovered lines: 0
Coverable lines: 13
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_StartedAtUtc()100%11100%
get_FinishedAtUtc()100%11100%
get_PeriodFrom()100%11100%
get_PeriodTo()100%11100%
get_Trigger()100%11100%
get_Success()100%11100%
get_Message()100%11100%
get_SettlementsError()100%11100%
get_Settlements()100%11100%
get_NewSettlements()100%11100%
get_Invoices()100%11100%
get_InvoiceErrors()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/ArmtekEtp/ArmtekEtpSyncRun.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models.ArmtekEtp;
 5
 6/// <summary>
 7/// Запуск загрузки из кабинета Armtek (плановый или с кнопки). По последнему успешному запуску страница показывает
 8/// «Обновлено», по последнему неудачному — ошибку; без журнала время зависело бы от того, были ли новые документы.
 9/// </summary>
 10[Table("ArmtekEtpSyncRuns")]
 11public class ArmtekEtpSyncRun
 12{
 813    public long Id { get; set; }
 14
 815    public DateTime StartedAtUtc { get; set; }
 816    public DateTime? FinishedAtUtc { get; set; }
 17
 1118    public DateTime PeriodFrom { get; set; }
 1019    public DateTime PeriodTo { get; set; }
 20
 21    /// <summary>Кто запустил: «Расписание» или имя пользователя.</summary>
 3222    [MaxLength(256)] public string Trigger { get; set; } = string.Empty;
 23
 24    /// <summary>null — ещё идёт (или процесс упал, не дописав результат).</summary>
 1325    public bool? Success { get; set; }
 26
 927    [MaxLength(2000)] public string? Message { get; set; }
 28
 29    /// <summary>
 30    /// Ошибка загрузки взаиморасчётов из кабинета. Фактуры идут через API и от кабинета не зависят: запуск успешен,
 31    /// а взаиморасчёты остаются от прошлой загрузки — страница показывает это предупреждением.
 32    /// </summary>
 1033    [MaxLength(2000)] public string? SettlementsError { get; set; }
 34
 1035    public int Settlements { get; set; }
 936    public int NewSettlements { get; set; }
 837    public int Invoices { get; set; }
 738    public int InvoiceErrors { get; set; }
 39}