< Summary

Information
Class: Elsa.Models.ValidateCredentialsResult
Assembly: Elsa.Api.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/common/Elsa.Api.Common/Models/ValidateCredentialsResult.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 7
Line coverage: 0%
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_IsValid()100%210%
Invalid()100%210%
Valid(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/common/Elsa.Api.Common/Models/ValidateCredentialsResult.cs

#LineLine coverage
 1namespace Elsa.Models;
 2
 03public record ValidateCredentialsResult(bool IsValid, object? Context = null)
 4{
 05    public static ValidateCredentialsResult Invalid() => new(false);
 06    public static ValidateCredentialsResult Valid(object? context = null) => new(true, context);
 7}