< Summary

Information
Class: ProjectTemplate.Infrastructure.Data.Auditing.DefaultApplicationAuditValuePolicy
Assembly: ProjectTemplate.Infrastructure
File(s): /home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Infrastructure/Data/Auditing/DefaultApplicationAuditValuePolicy.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 18
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
Evaluate(...)100%11100%

File(s)

/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Infrastructure/Data/Auditing/DefaultApplicationAuditValuePolicy.cs

#LineLine coverage
 1namespace ProjectTemplate.Infrastructure.Data.Auditing;
 2
 3/// <summary>
 4/// Includes audited values unchanged. Applications should replace this policy when sensitive fields require minimizatio
 5/// </summary>
 6public sealed class DefaultApplicationAuditValuePolicy : IApplicationAuditValuePolicy
 7{
 8    public ApplicationAuditValueDecision Evaluate(
 9        Type entityType,
 10        string propertyName,
 11        object? value)
 12    {
 60413        ArgumentNullException.ThrowIfNull(entityType);
 60414        ArgumentException.ThrowIfNullOrWhiteSpace(propertyName);
 15
 60416        return ApplicationAuditValueDecision.Include;
 17    }
 18}