< Summary

Information
Class: Elsa.Workflows.UIHints.Dictionary.DictionaryUIHintInputModifier
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/UIHints/Dictionary/DictionaryUIHintInputModifier.cs
Line coverage
75%
Covered lines: 3
Uncovered lines: 1
Coverable lines: 4
Total lines: 14
Line coverage: 75%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
Modify(...)50%2275%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/UIHints/Dictionary/DictionaryUIHintInputModifier.cs

#LineLine coverage
 1using Elsa.Workflows.Models;
 2
 3namespace Elsa.Workflows.UIHints.Dictionary;
 4
 5public class DictionaryUIHintInputModifier : IActivityDescriptorModifier
 6{
 7    public void Modify(ActivityDescriptor descriptor)
 8    {
 272139        var dictionaryInputs = descriptor.Inputs.Where(x => x.UIHint == InputUIHints.Dictionary).ToList();
 10
 2214011        foreach (var dictionaryInput in dictionaryInputs)
 012            dictionaryInput.EvaluatorType = typeof(DictionaryValueEvaluator);
 1107013    }
 14}