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

loresoft / MediatR.CommandQuery / 12839776781

18 Jan 2025 01:54AM UTC coverage: 60.229%. Remained the same
12839776781

push

github

pwelter34
fix serialization issue

402 of 761 branches covered (52.83%)

Branch coverage included in aggregate %.

2 of 3 new or added lines in 3 files covered. (66.67%)

1282 of 2035 relevant lines covered (63.0%)

19.24 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

4
namespace MediatR.CommandQuery.Commands;
5

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

NEW
25
        Ids = ids;
×
26
    }
×
27

28
    /// <summary>
29
    /// Gets the list of identifiers for this command.
30
    /// </summary>
31
    /// <value>
32
    /// The list of identifiers for this command.
33
    /// </value>
34
    public IReadOnlyCollection<TKey> Ids { get; }
×
35
}
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