< Summary

Information
Class: Elsa.Api.Client.Resources.WorkflowDefinitions.Models.ActivityHandle
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowDefinitions/Models/ActivityHandle.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 16
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
FromActivityId(...)100%210%
FromActivityNodeId(...)100%210%
FromActivityInstanceId(...)100%210%
FromActivityHash(...)100%210%
get_ActivityId()100%210%
get_ActivityNodeId()100%210%
get_ActivityInstanceId()100%210%
get_ActivityHash()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowDefinitions/Models/ActivityHandle.cs

#LineLine coverage
 1namespace Elsa.Api.Client.Resources.WorkflowDefinitions.Models;
 2
 3/// <summary>
 4/// Represents a handle to an activity.
 5/// </summary>
 6public class ActivityHandle
 7{
 08    public static ActivityHandle FromActivityId(string activityId) => new() { ActivityId = activityId };
 09    public static ActivityHandle FromActivityNodeId(string activityNodeId) => new() { ActivityNodeId = activityNodeId };
 010    public static ActivityHandle FromActivityInstanceId(string activityInstanceId) => new() { ActivityInstanceId = activ
 011    public static ActivityHandle FromActivityHash(string activityHash) => new() { ActivityHash = activityHash };
 012    public string? ActivityId { get; init; }
 013    public string? ActivityNodeId { get; init;}
 014    public string? ActivityInstanceId { get; init;}
 015    public string? ActivityHash { get; init;}
 16}