• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

loresoft / MediatR.CommandQuery / 14067111219

25 Mar 2025 06:14PM UTC coverage: 59.397% (-0.5%) from 59.879%
14067111219

push

github

pwelter34
Update MediatorServiceExtensions.cs

495 of 971 branches covered (50.98%)

Branch coverage included in aggregate %.

0 of 3 new or added lines in 1 file covered. (0.0%)

113 existing lines in 15 files now uncovered.

1474 of 2344 relevant lines covered (62.88%)

22.57 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

37.5
/src/MediatR.CommandQuery/Queries/EntitySelectQuery.cs
1
using System.Security.Claims;
2
using System.Text.Json.Serialization;
3

4
using MediatR.CommandQuery.Services;
5

6
namespace MediatR.CommandQuery.Queries;
7

8
public record EntitySelectQuery<TReadModel> : CacheableQueryBase<IReadOnlyCollection<TReadModel>>
9
{
10
    public EntitySelectQuery(ClaimsPrincipal? principal)
11
        : this(principal, new EntitySelect())
×
12
    {
13
    }
×
14

15
    public EntitySelectQuery(ClaimsPrincipal? principal, EntityFilter filter)
16
        : this(principal, new EntitySelect(filter))
×
17
    {
18
    }
×
19

20
    public EntitySelectQuery(ClaimsPrincipal? principal, EntityFilter filter, EntitySort sort)
21
        : this(principal, filter, [sort])
×
22
    {
23
    }
×
24

25
    public EntitySelectQuery(ClaimsPrincipal? principal, EntityFilter filter, IEnumerable<EntitySort> sort)
26
        : this(principal, new EntitySelect(filter, sort))
×
27
    {
28

29
    }
×
30

31
    [JsonConstructor]
32
    public EntitySelectQuery(ClaimsPrincipal? principal, EntitySelect? select)
33
        : base(principal)
16✔
34
    {
35
        Select = select ?? new EntitySelect();
16✔
36
    }
16✔
37

38
    [JsonPropertyName("select")]
39
    public EntitySelect Select { get; }
80✔
40

41

42
    public override string GetCacheKey()
UNCOV
43
        => CacheTagger.GetKey<TReadModel, int>(CacheTagger.Buckets.List, Select.GetHashCode());
×
44

45
    public override string? GetCacheTag()
UNCOV
46
        => CacheTagger.GetTag<TReadModel>();
×
47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc