< Summary

Information
Class: Elsa.Identity.Endpoints.Permissions.List.Response
Assembly: Elsa.Identity
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Identity/Endpoints/Permissions/List/Models.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 24
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_CoreVerbs()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Identity/Endpoints/Permissions/List/Models.cs

#LineLine coverage
 1namespace Elsa.Identity.Endpoints.Permissions.List;
 2
 3/// <summary>The permission catalog: every resource the installed modules have registered.</summary>
 4/// <param name="CoreVerbs">The recommended verb set modules should reuse. A convention, not a closed vocabulary.</param
 5/// <param name="Resources">Every registered resource, ordered by name.</param>
 06public record Response(IReadOnlyCollection<string> CoreVerbs, IReadOnlyCollection<ResourceDescriptor> Resources);
 7
 8/// <summary>One registered resource and the verbs it accepts.</summary>
 9/// <param name="NonCoreVerbs">
 10/// The subset of <paramref name="SupportedVerbs"/> outside the recommended core set, surfaced so a
 11/// reviewer can spot a needless synonym.
 12/// </param>
 13/// <param name="Verified">
 14/// <c>false</c> when the descriptor was inferred from an endpoint declaration rather than declared by a
 15/// module. The module keeps working and the gap stays visible here.
 16/// </param>
 17public record ResourceDescriptor(
 18    string Resource,
 19    IReadOnlyCollection<string> SupportedVerbs,
 20    IReadOnlyCollection<string> NonCoreVerbs,
 21    string DisplayName,
 22    string Description,
 23    string Category,
 24    bool Verified);

Methods/Properties

get_CoreVerbs()