< Summary

Information
Class: OzonDomains.Models.FavoritPartsOrderItem
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/FavoritPartsOrderItem.cs
Line coverage
50%
Covered lines: 7
Uncovered lines: 7
Coverable lines: 14
Total lines: 23
Line coverage: 50%
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_FavoritPartsOrderId()100%11100%
get_FavoritPartsOrder()100%210%
get_FavoritPartsCartItemId()100%210%
get_FavoritPartsCartItem()100%210%
get_StudioOrderId()100%11100%
get_StudioOrder()100%210%
get_GoodsId()100%11100%
get_WarehouseGroupId()100%11100%
get_Brand()100%11100%
get_Quantity()100%11100%
get_Price()100%210%
get_CurrencyCode()100%210%
get_Error()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("FavoritPartsOrderItems")]
 7public sealed class FavoritPartsOrderItem
 8{
 169    public long Id { get; set; }
 1610    public long FavoritPartsOrderId { get; set; }
 011    public FavoritPartsOrder? FavoritPartsOrder { get; set; }
 012    public long? FavoritPartsCartItemId { get; set; }
 013    public FavoritPartsCartItem? FavoritPartsCartItem { get; set; }
 1614    public int StudioOrderId { get; set; }
 015    public Order? StudioOrder { get; set; }
 1616    public Guid GoodsId { get; set; }
 1617    public Guid WarehouseGroupId { get; set; }
 1718    [Required, MaxLength(80)] public string Brand { get; set; } = string.Empty;
 1619    public decimal Quantity { get; set; }
 020    public decimal? Price { get; set; }
 021    [MaxLength(8)] public string? CurrencyCode { get; set; }
 022    [MaxLength(1000)] public string? Error { get; set; }
 23}