< Summary

Information
Class: Elsa.Workflows.Builders.WorkflowBuilderFactory
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Builders/WorkflowBuilderFactory.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 15
Line coverage: 100%
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
.ctor(...)100%11100%
CreateBuilder()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Builders/WorkflowBuilderFactory.cs

#LineLine coverage
 1namespace Elsa.Workflows.Builders;
 2
 3/// <inheritdoc />
 4public class WorkflowBuilderFactory : IWorkflowBuilderFactory
 5{
 6    private readonly Func<IWorkflowBuilder> _factory;
 7
 8    /// <summary>
 9    /// Initializes a new instance of the <see cref="WorkflowBuilderFactory"/> class.
 10    /// </summary>
 86211    public WorkflowBuilderFactory(Func<IWorkflowBuilder> factory) => _factory = factory;
 12
 13    /// <inheritdoc />
 103214    public IWorkflowBuilder CreateBuilder() => _factory();
 15}