< Summary

Information
Class: OzonDomains.Models.EmailRoutingJobExecution
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/EmailRoutingJobExecution.cs
Line coverage
20%
Covered lines: 3
Uncovered lines: 12
Coverable lines: 15
Total lines: 61
Line coverage: 20%
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_TriggerType()100%11100%
get_Status()100%11100%
get_StartedAtUtc()100%11100%
get_CompletedAtUtc()100%210%
get_BatchesProcessed()100%210%
get_MessagesProcessed()100%210%
get_AttachmentsUploaded()100%210%
get_AttachmentsRejected()100%210%
get_AttachmentsDuplicate()100%210%
get_AttachmentsFailed()100%210%
get_AttachmentsPending()100%210%
get_HangfireJobId()100%210%
get_Summary()100%210%
get_ErrorMessage()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("EmailRoutingJobExecutions")]
 7public class EmailRoutingJobExecution
 8{
 9    [Key]
 10    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 011    public long Id { get; set; }
 12
 13    [Required]
 14    [MaxLength(32)]
 715    public string TriggerType { get; set; } = EmailRoutingJobTriggerType.Scheduled;
 16
 17    [Required]
 18    [MaxLength(32)]
 1419    public string Status { get; set; } = EmailRoutingJobExecutionStatus.Running;
 20
 1421    public DateTime StartedAtUtc { get; set; } = DateTime.UtcNow;
 22
 023    public DateTime? CompletedAtUtc { get; set; }
 24
 025    public int BatchesProcessed { get; set; }
 26
 027    public int MessagesProcessed { get; set; }
 28
 029    public int AttachmentsUploaded { get; set; }
 30
 031    public int AttachmentsRejected { get; set; }
 32
 033    public int AttachmentsDuplicate { get; set; }
 34
 035    public int AttachmentsFailed { get; set; }
 36
 037    public int AttachmentsPending { get; set; }
 38
 39    [MaxLength(64)]
 040    public string? HangfireJobId { get; set; }
 41
 42    [MaxLength(2000)]
 043    public string? Summary { get; set; }
 44
 45    [MaxLength(2000)]
 046    public string? ErrorMessage { get; set; }
 47}
 48
 49public static class EmailRoutingJobExecutionStatus
 50{
 51    public const string Running = "Running";
 52    public const string Success = "Success";
 53    public const string Failed = "Failed";
 54    public const string Skipped = "Skipped";
 55}
 56
 57public static class EmailRoutingJobTriggerType
 58{
 59    public const string Scheduled = "Scheduled";
 60    public const string Manual = "Manual";
 61}