< Summary

Information
Class: Syki.Back.Events.DomainEvent
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Events/DomainEvent.cs
Tag: 22_11348620282
Line coverage
0%
Covered lines: 0
Uncovered lines: 17
Coverable lines: 17
Total lines: 25
Line coverage: 0%
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_EntityId()100%210%
get_Type()100%210%
get_Data()100%210%
get_CreatedAt()100%210%
get_ProcessedAt()100%210%
get_Error()100%210%
.ctor()100%210%
.ctor(...)100%210%

File(s)

/home/runner/work/syki/syki/Back/Events/DomainEvent.cs

#LineLine coverage
 1namespace Syki.Back.Events;
 2
 3public class DomainEvent
 4{
 05    public Guid Id { get; set; }
 06    public Guid EntityId { get; set; }
 07    public string Type { get; set; }
 08    public string Data { get; set; }
 09    public DateTime CreatedAt { get; set; }
 010    public DateTime? ProcessedAt { get; set; }
 011    public string? Error { get; set; }
 12
 013    public DomainEvent() { }
 14
 015    public DomainEvent(
 016        Guid entityId,
 017        object data)
 18    {
 019        Id = Guid.NewGuid();
 020        EntityId = entityId;
 021        Type = data.GetType().ToString();
 022        Data = data.Serialize();
 023        CreatedAt = DateTime.Now;
 024    }
 25}