< Summary

Information
Class: Elsa.Workflows.Api.Endpoints.Shells.ShellReloadResponse
Assembly: Elsa.Workflows.Api
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/Shells/ShellsResponseModels.cs
Line coverage
100%
Covered lines: 17
Uncovered lines: 0
Coverable lines: 17
Total lines: 33
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
get_Status()100%11100%
get_RequestedShellId()100%11100%
get_ReloadedAt()100%11100%
get_Shells()100%11100%
FromResult(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/Shells/ShellsResponseModels.cs

#LineLine coverage
 1using Elsa.Workflows.Api.Contracts;
 2
 3namespace Elsa.Workflows.Api.Endpoints.Shells;
 4
 5internal class ShellReloadResponse
 6{
 147    public ShellReloadStatus Status { get; init; }
 148    public string? RequestedShellId { get; init; }
 149    public DateTimeOffset ReloadedAt { get; init; }
 2110    public IReadOnlyCollection<ShellReloadItemResponse> Shells { get; init; } = [];
 11
 712    public static ShellReloadResponse FromResult(ShellReloadResult result) => new()
 713    {
 714        Status = result.Status,
 715        RequestedShellId = result.RequestedShellId,
 716        ReloadedAt = result.ReloadedAt,
 1017        Shells = result.Shells.Select(x => new ShellReloadItemResponse
 1018        {
 1019            ShellId = x.ShellId,
 1020            Outcome = x.Outcome,
 1021            Requested = x.Requested,
 1022            Message = x.Message
 1023        }).ToArray()
 724    };
 25}
 26
 27internal class ShellReloadItemResponse
 28{
 29    public string ShellId { get; init; } = default!;
 30    public ShellReloadItemOutcome Outcome { get; init; }
 31    public bool Requested { get; init; }
 32    public string? Message { get; init; }
 33}