< Summary

Information
Class: OzonDomains.Models.Authorization.AuditLogEntry
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/Authorization/AuditLogEntry.cs
Line coverage
54%
Covered lines: 6
Uncovered lines: 5
Coverable lines: 11
Total lines: 37
Line coverage: 54.5%
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_Timestamp()100%11100%
get_ActorUserId()100%11100%
get_ActorUserName()100%11100%
get_Action()100%11100%
get_EntityType()100%11100%
get_EntityId()100%210%
get_OldValue()100%210%
get_NewValue()100%210%
get_Comment()100%210%
get_IpAddress()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/Authorization/AuditLogEntry.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2
 3namespace OzonDomains.Models.Authorization;
 4
 5/// <summary>
 6/// Запись журнала аудита изменений прав (роли, разрешения, override).
 7/// </summary>
 8public class AuditLogEntry
 9{
 510    public long Id { get; set; }
 11
 312    public DateTime Timestamp { get; set; } = DateTime.UtcNow;
 13
 14    [MaxLength(450)]
 615    public string? ActorUserId { get; set; }
 16
 17    [MaxLength(300)]
 818    public string? ActorUserName { get; set; }
 19
 20    [Required, MaxLength(100)]
 921    public string Action { get; set; } = string.Empty;
 22
 23    [Required, MaxLength(150)]
 824    public string EntityType { get; set; } = string.Empty;
 25
 26    [MaxLength(450)]
 027    public string? EntityId { get; set; }
 28
 029    public string? OldValue { get; set; }
 030    public string? NewValue { get; set; }
 31
 32    [MaxLength(4000)]
 033    public string? Comment { get; set; }
 34
 35    [MaxLength(100)]
 036    public string? IpAddress { get; set; }
 37}