< Summary

Information
Class: OzonOrdersWeb.Areas.Studio2.ViewModels.ApiSupplierSettings.ProfitLigaSettingsViewModel
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/ApiSupplierSettings/ProfitLigaSettingsViewModel.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 30
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
.ctor()100%11100%
get_PointMappings()100%11100%
get_Points()100%11100%
get_PointsLoadError()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/ApiSupplierSettings/ProfitLigaSettingsViewModel.cs

#LineLine coverage
 1using OzonDomains;
 2
 3namespace OzonOrdersWeb.Areas.Studio2.ViewModels.ApiSupplierSettings;
 4
 5public sealed class ProfitLigaSettingsViewModel : ApiSupplierSettingsViewModelBase
 6{
 27    public ProfitLigaSettingsViewModel() => CurrencyCode = CurrencyCode.RUB;
 8
 9    /// <summary>Связи «склад отгрузки Studio2 → торговая точка Профит-Лиги».</summary>
 310    public List<ProfitLigaPointMappingViewModel> PointMappings { get; set; } = new();
 11
 12    /// <summary>Доступные точки доставки и самовывоза из GET /cart/params.</summary>
 213    public List<ProfitLigaPointOptionViewModel> Points { get; set; } = new();
 14
 215    public string? PointsLoadError { get; set; }
 16}
 17
 18public sealed class ProfitLigaPointMappingViewModel
 19{
 20    public int ShipmentWarehouseId { get; set; }
 21    public string WarehouseName { get; set; } = string.Empty;
 22    public string? PointCode { get; set; }
 23}
 24
 25public sealed class ProfitLigaPointOptionViewModel
 26{
 27    public string Code { get; set; } = string.Empty;
 28    public string DisplayName { get; set; } = string.Empty;
 29    public bool IsPickup { get; set; }
 30}