< Summary

Information
Class: OzonOrdersWeb.Areas.Studio2.ViewModels.Bitrix.BitrixStockAutoScheduleRequest
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/Bitrix/BitrixStockAutoScheduleRequest.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 10
Coverable lines: 10
Total lines: 35
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_ActionType()100%210%
get_OzonClientId()100%210%
get_CronExpression()100%210%
get_IsActive()100%210%
get_MaxItemsPerRun()100%210%
get_FilterJson()100%210%
get_FilterQuery()100%210%
get_SelectedStoreTitles()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/Bitrix/BitrixStockAutoScheduleRequest.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2
 3namespace OzonOrdersWeb.Areas.Studio2.ViewModels.Bitrix;
 4
 5public class BitrixStockAutoScheduleRequest
 6{
 07    public int Id { get; set; }
 8
 9    [Required]
 10    [MaxLength(256)]
 011    public string Name { get; set; } = string.Empty;
 12
 13    [Required]
 014    public string ActionType { get; set; } = "Clear";
 15
 16    [Range(1, int.MaxValue)]
 017    public int OzonClientId { get; set; }
 18
 19    [Required]
 20    [MaxLength(100)]
 021    public string CronExpression { get; set; } = "0 3 * * *";
 22
 023    public bool IsActive { get; set; } = true;
 24
 25    [Range(1, 500)]
 026    public int MaxItemsPerRun { get; set; } = 500;
 27
 028    public string? FilterJson { get; set; }
 29
 30    /// <summary>Доп. ограничения из query-string (артикул, поставщик и т.д.).</summary>
 031    public string? FilterQuery { get; set; }
 32
 33    /// <summary>Склады Bitrix для задачи; пусто — склады по умолчанию.</summary>
 034    public List<string>? SelectedStoreTitles { get; set; }
 35}