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

loresoft / MediatR.CommandQuery / 8911801772

01 May 2024 04:09PM CUT coverage: 57.379% (-1.8%) from 59.163%
8911801772

push

github

pwelter34
tweak build

342 of 700 branches covered (48.86%)

Branch coverage included in aggregate %.

1011 of 1658 relevant lines covered (60.98%)

18.48 hits per line

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

66.67
/src/MediatR.CommandQuery/Behaviors/DeletedSelectQueryBehavior.cs
1
using MediatR.CommandQuery.Queries;
2

3
using Microsoft.Extensions.Logging;
4

5
namespace MediatR.CommandQuery.Behaviors;
6

7
public class DeletedSelectQueryBehavior<TEntityModel>
8
    : DeletedFilterBehaviorBase<TEntityModel, EntitySelectQuery<TEntityModel>, IReadOnlyCollection<TEntityModel>>
9
    where TEntityModel : class
10
{
11
    public DeletedSelectQueryBehavior(ILoggerFactory loggerFactory) : base(loggerFactory)
12✔
12
    {
13
    }
12✔
14

15
    protected override async Task<IReadOnlyCollection<TEntityModel>> Process(
16
        EntitySelectQuery<TEntityModel> request,
17
        RequestHandlerDelegate<IReadOnlyCollection<TEntityModel>> next,
18
        CancellationToken cancellationToken)
19
    {
20
        if (request is null)
12!
21
            throw new ArgumentNullException(nameof(request));
×
22

23
        if (next is null)
12!
24
            throw new ArgumentNullException(nameof(next));
×
25

26
        // add delete filter
27
        request.Select.Filter = RewriteFilter(request.Select?.Filter, request.Principal);
12!
28

29
        // continue pipeline
30
        return await next().ConfigureAwait(false);
12✔
31
    }
12✔
32
}
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

© 2025 Coveralls, Inc