< Summary

Information
Class: Syki.Back.Features.Academic.CreateNotification.UserNotification
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/CreateNotification/UserNotification.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 16
Uncovered lines: 0
Coverable lines: 16
Total lines: 27
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_UserId()100%11100%
get_NotificationId()100%11100%
get_Notification()100%11100%
get_ViewedAt()100%11100%
.ctor(...)100%11100%
ToOut()100%11100%

File(s)

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

#LineLine coverage
 1namespace Syki.Back.Features.Academic.CreateNotification;
 2
 3public class UserNotification
 4{
 735    public Guid UserId { get; set; }
 826    public Guid NotificationId { get; set; }
 347    public Notification Notification { get; set; }
 158    public DateTime? ViewedAt { get; set; }
 9
 7010    public UserNotification(Guid userId, Guid notificationId)
 11    {
 7012        UserId = userId;
 7013        NotificationId = notificationId;
 7014    }
 15
 16    public UserNotificationOut ToOut()
 17    {
 1118        return new UserNotificationOut
 1119        {
 1120            NotificationId = NotificationId,
 1121            Title = Notification.Title,
 1122            Description = Notification.Description,
 1123            CreatedAt = Notification.CreatedAt,
 1124            ViewedAt = ViewedAt,
 1125        };
 26    }
 27}