< Summary

Information
Class: Elsa.Workflows.Api.Endpoints.WorkflowDefinitions.Dispatch.Request
Assembly: Elsa.Workflows.Api
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowDefinitions/Dispatch/Models.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 22
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_DefinitionId()100%210%
get_InstanceId()100%210%
get_CorrelationId()100%210%
get_TriggerActivityId()100%210%
get_VersionOptions()100%210%
get_Input()100%210%
get_Channel()100%210%

File(s)

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

#LineLine coverage
 1using System.Text.Json.Serialization;
 2using Elsa.Common.Models;
 3using Elsa.Workflows.Serialization.Converters;
 4
 5namespace Elsa.Workflows.Api.Endpoints.WorkflowDefinitions.Dispatch;
 6
 7internal class Request
 8{
 09    public string DefinitionId { get; set; } = default!;
 010    public string? InstanceId { get; set; }
 011    public string? CorrelationId { get; set; }
 012    public string? TriggerActivityId { get; set; }
 13
 014    public VersionOptions? VersionOptions { get; set; }
 15
 16    [JsonConverter(typeof(ExpandoObjectConverterFactory))]
 017    public object? Input { get; set; }
 18
 019    public string? Channel { get; set; }
 20}
 21
 22internal record Response(string WorkflowInstanceId);