< Summary

Information
Class: Elsa.Workflows.Api.Endpoints.WorkflowDefinitions.IsNameUnique.Request
Assembly: Elsa.Workflows.Api
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowDefinitions/IsNameUnique/Models.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 20
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_Name()100%210%
get_DefinitionId()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowDefinitions/IsNameUnique/Models.cs

#LineLine coverage
 1namespace Elsa.Workflows.Api.Endpoints.WorkflowDefinitions.IsNameUnique;
 2
 3internal class Request
 4{
 5    /// <summary>
 6    /// The name to check.
 7    /// </summary>
 08    public string Name { get; set; } = default!;
 9
 10    /// <summary>
 11    /// Optional. If provided, the name will be checked against all workflow definitions except the one with the specifi
 12    /// </summary>
 013    public string? DefinitionId { get; set; }
 14}
 15
 16/// <summary>
 17/// Represents a response indicating whether a workflow definition name is unique.
 18/// </summary>
 19/// <param name="IsUnique">A value indicating whether the name is unique.</param>
 20internal record Response(bool IsUnique);

Methods/Properties

get_Name()
get_DefinitionId()