< Summary

Information
Class: OzonDomains.Models.OrderControlTaskEvent
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/OrderControlTaskEvent.cs
Line coverage
71%
Covered lines: 5
Uncovered lines: 2
Coverable lines: 7
Total lines: 16
Line coverage: 71.4%
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_TaskId()100%11100%
get_Task()100%210%
get_EventType()100%11100%
get_UserId()100%11100%
get_Details()100%11100%
get_CreatedAtUtc()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("OrderControlTaskEvents")]
 7public class OrderControlTaskEvent
 8{
 09    public long Id { get; set; }
 61310    public long TaskId { get; set; }
 011    public OrderControlTask? Task { get; set; }
 122612    [Required, MaxLength(40)] public string EventType { get; set; } = string.Empty;
 213    [MaxLength(450)] public string? UserId { get; set; }
 61114    [MaxLength(1000)] public string? Details { get; set; }
 122615    public DateTime CreatedAtUtc { get; set; } = DateTime.UtcNow;
 16}