< Summary

Information
Class: ProjectTemplate.Infrastructure.Data.Entities.AuditRecord
Assembly: ProjectTemplate.Infrastructure
File(s): /home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Infrastructure/Data/Entities/AuditRecord.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 37
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_ModifiedBy()100%11100%
get_ModifiedOnUtc()100%11100%
get_Application()100%11100%
get_Entity()100%11100%
get_State()100%11100%
get_KeyValues()100%11100%
get_OriginalValues()100%11100%
get_CurrentValues()100%11100%

File(s)

/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Infrastructure/Data/Entities/AuditRecord.cs

#LineLine coverage
 1namespace ProjectTemplate.Infrastructure.Data.Entities;
 2
 3public class AuditRecord : DataEntity
 4{
 5    /// <summary>
 6    /// The user, system or remote IP address that made the change. It can be a username, an email address, or a system 
 7    /// </summary>
 748    public string ModifiedBy { get; set; } = string.Empty;
 9    /// <summary>
 10    /// The date and time when the change was made, in Coordinated Universal Time (UTC). It should be stored in UTC to a
 11    /// </summary>
 6612    public DateTime ModifiedOnUtc { get; set; } = PersistenceTimestamp.UtcNow();
 13    /// <summary>
 14    /// The name of the application or service that made the change. It can be used to group changes by application or s
 15    /// </summary>
 6416    public string Application { get; set; } = string.Empty;
 17    /// <summary>
 18    /// The name of the entity that was changed. It can be used to group changes by entity type, and to identify which e
 19    /// </summary>
 6420    public string Entity { get; set; } = string.Empty;
 21    /// <summary>
 22    /// The state of the entity after the change. It can be used to identify whether the entity was created, updated, or
 23    /// </summary>
 7424    public string State { get; set; } = string.Empty;
 25    /// <summary>
 26    /// The key values of the entity that was changed. It can be used to identify which specific entity was changed, and
 27    /// </summary>
 6428    public string KeyValues { get; set; } = string.Empty;
 29    /// <summary>
 30    /// The original values of the entity before the change. It can be used to identify what the values were before the 
 31    /// </summary>
 6832    public string OriginalValues { get; set; } = string.Empty;
 33    /// <summary>
 34    /// The current values of the entity after the change. It can be used to identify what the values are after the chan
 35    /// </summary>
 7436    public string CurrentValues { get; set; } = string.Empty;
 37}