< Summary - ZhEaIsNsAaBn.Libraries coverage (affected: 23 packages)

Information
Class: ZhEaIsNsAaBn.Infrastructure.Specifications.BaseSpecification<T>
Assembly: ZhEaIsNsAaBn.Infrastructure.Specifications
File(s): /home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.Infrastructure.Specifications/Specifications/BaseSpecification.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 13
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
.ctor()100%11100%

File(s)

/home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.Infrastructure.Specifications/Specifications/BaseSpecification.cs

#LineLine coverage
 1namespace ZhEaIsNsAaBn.Infrastructure.Specifications;
 2
 3/// <summary>
 4/// Base for the specifications: an Ardalis <see cref="Specification{T}"/> that can reject its own filter. Set
 5/// <see cref="IsValid"/> to a failure in the constructor and the repository returns that failure without querying.
 6/// </summary>
 7/// <typeparam name="TEntity">The entity type.</typeparam>
 8public abstract class BaseSpecification< TEntity > : Specification<TEntity>
 9    where TEntity : class
 10{
 11    /// <summary>Success, or the reasons the filter is invalid.</summary>
 18812    public LayerResponse IsValid { get; protected set; } = LayerResponse.Success();
 13}

Methods/Properties

.ctor()