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

loresoft / MediatR.CommandQuery / 11418431610

19 Oct 2024 02:43PM UTC coverage: 58.337% (+0.9%) from 57.424%
11418431610

push

github

pwelter34
add HybridCache, misc refactors

331 of 675 branches covered (49.04%)

Branch coverage included in aggregate %.

28 of 176 new or added lines in 24 files covered. (15.91%)

156 existing lines in 33 files now uncovered.

1163 of 1886 relevant lines covered (61.66%)

19.49 hits per line

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

83.33
/src/MediatR.CommandQuery/Commands/EntityPatchCommand.cs
1
using System.Diagnostics.CodeAnalysis;
2
using System.Security.Claims;
3

4
using MediatR.CommandQuery.Definitions;
5
using MediatR.CommandQuery.Services;
6

7
using Microsoft.Extensions.Logging;
8

9
using SystemTextJsonPatch;
10

11
namespace MediatR.CommandQuery.Commands;
12

13
public record EntityPatchCommand<TKey, TReadModel>
14
    : EntityIdentifierCommand<TKey, TReadModel>, ICacheExpire
15
{
16
    public EntityPatchCommand(ClaimsPrincipal? principal, [NotNull] TKey id, [NotNull] JsonPatchDocument patch) : base(principal, id)
12✔
17
    {
18
        ArgumentNullException.ThrowIfNull(patch);
12✔
19

20
        Patch = patch;
10✔
21
    }
10✔
22

23
    public JsonPatchDocument Patch { get; }
10✔
24

25
    string? ICacheExpire.GetCacheTag()
NEW
26
        => CacheTagger.GetTag<TReadModel>();
×
27
}
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