• 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

0.0
/src/MediatR.CommandQuery.Cosmos/Handlers/RepositoryHandlerBase.cs
1
using AutoMapper;
2

3
using Cosmos.Abstracts;
4

5
using MediatR.CommandQuery.Handlers;
6

7
using Microsoft.Extensions.Logging;
8

9
namespace MediatR.CommandQuery.Cosmos.Handlers;
10

11
public abstract class RepositoryHandlerBase<TRepository, TEntity, TRequest, TResponse>
12
    : RequestHandlerBase<TRequest, TResponse>
13
    where TRepository : ICosmosRepository<TEntity>
14
    where TRequest : IRequest<TResponse>
15
{
16
    protected RepositoryHandlerBase(ILoggerFactory loggerFactory, TRepository repository, IMapper mapper) : base(loggerFactory)
×
17
    {
18
        if (repository is null)
×
19
            throw new ArgumentNullException(nameof(repository));
×
20
        if (mapper is null)
×
21
            throw new ArgumentNullException(nameof(mapper));
×
22

23
        Repository = repository;
×
24
        Mapper = mapper;
×
25
    }
×
26

27
    protected TRepository Repository { get; }
×
28

29
    protected IMapper Mapper { get; }
×
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

© 2025 Coveralls, Inc