• 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

0.0
/src/MediatR.CommandQuery/Commands/EntityIdentifiersCommand.cs
1
using System.Diagnostics.CodeAnalysis;
2
using System.Security.Claims;
3
using System.Text.Json.Serialization;
4

5
namespace MediatR.CommandQuery.Commands;
6

7
/// <summary>
8
/// A base command for commands that use a list of identifiers
9
/// </summary>
10
/// <typeparam name="TKey">The type of the key.</typeparam>
11
/// <typeparam name="TResponse">The type of the response.</typeparam>
12
public abstract record EntityIdentifiersCommand<TKey, TResponse>
13
    : PrincipalCommandBase<TResponse>
14
{
15
    /// <summary>
16
    /// Initializes a new instance of the <see cref="EntityIdentifiersCommand{TKey, TResponse}"/> class.
17
    /// </summary>
18
    /// <param name="principal">the <see cref="ClaimsPrincipal"/> this command is run for</param>
19
    /// <param name="ids">The list of identifiers for this command.</param>
20
    /// <exception cref="System.ArgumentNullException">When <paramref name="ids"/> is null</exception>
21
    protected EntityIdentifiersCommand(ClaimsPrincipal? principal, [NotNull] IReadOnlyCollection<TKey> ids)
UNCOV
22
        : base(principal)
×
23
    {
UNCOV
24
        ArgumentNullException.ThrowIfNull(ids);
×
25

26
        Ids = ids;
×
UNCOV
27
    }
×
28

29
    /// <summary>
30
    /// Gets the list of identifiers for this command.
31
    /// </summary>
32
    /// <value>
33
    /// The list of identifiers for this command.
34
    /// </value>
35
    [JsonPropertyName("ids")]
UNCOV
36
    public IReadOnlyCollection<TKey> Ids { get; }
×
37
}
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