< Summary

Information
Class: OzonDomains.Models.WarehouseMapping
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/WarehouseMapping.cs
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
Total lines: 25
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_BitrixWarehouseName()100%11100%
get_OzonWarehouseName()100%11100%
get_OzonClientId()100%11100%
get_SupplierId()100%11100%
get_DeliveryType()100%11100%
get_ReturnBitrixWarehouseName()100%11100%
get_TransitBitrixWarehouseName()100%11100%
get_OzonWarehouseId()100%11100%
get_Priority()100%11100%
get_OzonClient()100%11100%
get_Supplier()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("WarehouseMapping")]
 7public class WarehouseMapping
 8{
 3929    public int Id { get; set; }
 42510    public string BitrixWarehouseName { get; set; } = null!;
 47711    public string OzonWarehouseName { get; set; } = null!;
 27912    public int? OzonClientId { get; set; }
 1413    public int? SupplierId { get; set; }
 7714    public string? DeliveryType { get; set; }
 1415    public string? ReturnBitrixWarehouseName { get; set; }
 3016    public string? TransitBitrixWarehouseName { get; set; }
 17
 44718    public string? OzonWarehouseId { get; set; }
 19
 20    [Range(0, 999, ErrorMessage = "Приоритет должен быть от 0 до 999")]
 12621    public int Priority { get; set; } = 0;
 22
 323    [ForeignKey("OzonClientId")] public virtual OzonClient? OzonClient { get; set; }
 524    [ForeignKey(nameof(SupplierId))] public virtual Supplier? Supplier { get; set; }
 25}