< Summary

Information
Class: Elsa.Common.Serialization.ModifiableJsonTypeInfoResolver
Assembly: Elsa.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Serialization/ModifiableJsonTypeInfoResolver.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 16
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%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Serialization/ModifiableJsonTypeInfoResolver.cs

#LineLine coverage
 1using System.Text.Json.Serialization.Metadata;
 2using Elsa.Extensions;
 3
 4namespace Elsa.Common.Serialization;
 5
 6/// <summary>
 7/// A custom JSON type info resolver that allows private constructors to be used when deserializing JSON.
 8/// </summary>
 9public class ModifiableJsonTypeInfoResolver : DefaultJsonTypeInfoResolver
 10{
 11    /// <inheritdoc />
 58812    public ModifiableJsonTypeInfoResolver(IEnumerable<Action<JsonTypeInfo>> modifiers)
 13    {
 58814        Modifiers.AddRange(modifiers);
 58815    }
 16}