< Summary

Information
Class: EF.Blockchain.Domain.Validation
Assembly: EF.Blockchain.Domain
File(s): C:\dev\@web3\web3-001-ef-blockchain\backend\EF.Blockchain\src\EF.Blockchain.Domain\Validation.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 28
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Success()100%11100%
get_Message()100%11100%
.ctor(...)100%11100%

File(s)

C:\dev\@web3\web3-001-ef-blockchain\backend\EF.Blockchain\src\EF.Blockchain.Domain\Validation.cs

#LineLine coverage
 1namespace EF.Blockchain.Domain;
 2
 3/// <summary>
 4/// Represents the result of a validation process, indicating success or failure with an optional message.
 5/// </summary>
 6public class Validation
 7{
 8    /// <summary>
 9    /// Indicates whether the validation was successful.
 10    /// </summary>
 267211    public bool Success { get; }
 12
 13    /// <summary>
 14    /// Message describing the validation result, usually used in case of failure.
 15    /// </summary>
 96816    public string Message { get; }
 17
 18    /// <summary>
 19    /// Initializes a new instance of the <see cref="Validation"/> class.
 20    /// </summary>
 21    /// <param name="success">Indicates if the validation passed (default: true).</param>
 22    /// <param name="message">Optional message explaining the validation result.</param>
 294423    public Validation(bool success = true, string message = "")
 294424    {
 294425        Success = success;
 294426        Message = message;
 294427    }
 28}