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

loresoft / MediatR.CommandQuery / 12872786988

20 Jan 2025 05:05PM UTC coverage: 60.186% (-0.04%) from 60.229%
12872786988

push

github

pwelter34
tweak complete model

402 of 761 branches covered (52.83%)

Branch coverage included in aggregate %.

0 of 2 new or added lines in 1 file covered. (0.0%)

1282 of 2037 relevant lines covered (62.94%)

19.22 hits per line

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

0.0
/src/MediatR.CommandQuery/Models/CompleteModel.cs
1
namespace MediatR.CommandQuery.Models;
2

3
/// <summary>
4
/// Operation complete result model
5
/// </summary>
6
public class CompleteModel
7
{
8
    /// <summary>
9
    /// Gets or sets a value indicating whether operation was successful.
10
    /// </summary>
11
    /// <value>
12
    ///   <c>true</c> if was successful; otherwise, <c>false</c>.
13
    /// </value>
14
    public bool Successful { get; set; }
×
15

16
    /// <summary>
17
    /// Gets or sets the operation result message.
18
    /// </summary>
19
    /// <value>
20
    /// The operation result message.
21
    /// </value>
22
    public string? Message { get; set; }
×
23

24
    /// <summary>
25
    /// Creates a success result with the specified message.
26
    /// </summary>
27
    /// <param name="message">The message associated with the success</param>
28
    /// <returns>A new instance representing a success result</returns>
29
    public static CompleteModel Success(string? message = null)
NEW
30
        => new() { Successful = true, Message = message };
×
31

32
    /// <summary>
33
    /// Creates a failed result with the given error message
34
    /// </summary>
35
    /// <param name="message">The error message associated with the failure.</param>
36
    /// <returns>A new instance representing a failed result with the specified error message</returns>
37
    public static CompleteModel Fail(string? message = null)
NEW
38
        => new() { Successful = false, Message = message };
×
39
}
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