• 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

71.43
/src/MediatR.CommandQuery/Queries/EntityIdentifierQuery.cs
1
using System.Diagnostics.CodeAnalysis;
2
using System.Security.Claims;
3
using System.Text.Json.Serialization;
4

5
using MediatR.CommandQuery.Services;
6

7
namespace MediatR.CommandQuery.Queries;
8

9
public record EntityIdentifierQuery<TKey, TReadModel> : CacheableQueryBase<TReadModel>
10
{
11

12
    public EntityIdentifierQuery(ClaimsPrincipal? principal, [NotNull] TKey id)
13
        : base(principal)
32✔
14
    {
15
        ArgumentNullException.ThrowIfNull(id);
32✔
16

17
        Id = id;
32✔
18
    }
32✔
19

20
    [NotNull]
21
    [JsonPropertyName("id")]
22
    public TKey Id { get; }
30✔
23

24

25
    public override string GetCacheKey()
UNCOV
26
        => CacheTagger.GetKey<TReadModel, TKey>(CacheTagger.Buckets.Identifier, Id);
×
27

28
    public override string? GetCacheTag()
UNCOV
29
        => CacheTagger.GetTag<TReadModel>();
×
30
}
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