< Summary

Information
Class: Syki.Back.Features.Academic.CreateNotification.Notification
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/CreateNotification/Notification.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 34
Uncovered lines: 0
Coverable lines: 34
Total lines: 45
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_InstitutionId()100%11100%
get_Title()100%11100%
get_Description()100%11100%
get_Timeless()100%11100%
get_Target()100%11100%
get_CreatedAt()100%11100%
get_Users()100%11100%
get_Views()100%11100%
.ctor(...)100%11100%
ToOut()100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Academic/CreateNotification/Notification.cs

#LineLine coverage
 1namespace Syki.Back.Features.Academic.CreateNotification;
 2
 3public class Notification
 4{
 1565    public Guid Id { get; set; }
 766    public Guid InstitutionId { get; set; }
 1077    public string Title { get; set; }
 1078    public string Description { get; set; }
 919    public bool Timeless { get; set; }
 9110    public UsersGroup Target { get; set; }
 10411    public DateTime CreatedAt { get; set; }
 412    public List<UserNotification> Users { get; set; }
 13
 1914    public string Views { get; set; }
 15
 7516    public Notification(
 7517        Guid institutionId,
 7518        string title,
 7519        string description,
 7520        UsersGroup target,
 7521        bool timeless
 7522    ) {
 7523        Id = Guid.NewGuid();
 7524        InstitutionId = institutionId;
 7525        Title = title;
 7526        Description = description;
 7527        Target = target;
 7528        Timeless = timeless;
 7529        CreatedAt = DateTime.Now;
 7530    }
 31
 32    public NotificationOut ToOut()
 33    {
 1534        return new()
 1535        {
 1536            Id = Id,
 1537            Title = Title,
 1538            Description = Description,
 1539            Target = Target,
 1540            Timeless = Timeless,
 1541            CreatedAt = CreatedAt,
 1542            Views = Views,
 1543        };
 44    }
 45}