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

loresoft / MediatR.CommandQuery / 7293057134

21 Dec 2023 08:49PM UTC coverage: 58.562% (-0.5%) from 59.098%
7293057134

push

github

pwelter34
upgrade to .net 8 and lastest mediatR

230 of 438 branches covered (0.0%)

Branch coverage included in aggregate %.

20 of 54 new or added lines in 3 files covered. (37.04%)

7 existing lines in 7 files now uncovered.

560 of 911 relevant lines covered (61.47%)

19.52 hits per line

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

62.5
/src/MediatR.CommandQuery/Commands/EntityUpsertCommand.cs
1
using System;
2
using System.Diagnostics.CodeAnalysis;
3
using System.Security.Principal;
4

5
namespace MediatR.CommandQuery.Commands;
6

7
public class EntityUpsertCommand<TKey, TUpdateModel, TReadModel>
8
    : EntityModelCommand<TUpdateModel, TReadModel>
9
{
10
    public EntityUpsertCommand(IPrincipal? principal, [NotNull] TKey id, TUpdateModel model) : base(principal, model)
16✔
11
    {
12
        if (id == null)
16!
13
            throw new ArgumentNullException(nameof(id));
×
14

15
        Id = id;
16✔
16
    }
16✔
17

18
    [NotNull]
19
    public TKey Id { get; }
20

21
    public override string ToString()
22
    {
UNCOV
23
        return $"Entity Upsert Command; Model: {typeof(TUpdateModel).Name}; Id: {Id}; {base.ToString()}";
×
24
    }
25

26
}
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