< Summary

Information
Class: Shared.Contracts.VsRequest
Assembly: Shared
File(s): /home/runner/work/InvAit/InvAit/Shared/Contracts/VsRequest.cs
Tag: 14_22728831704
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 23
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_Action()100%11100%
get_Payload()100%11100%
get_CorrelationId()100%11100%

File(s)

/home/runner/work/InvAit/InvAit/Shared/Contracts/VsRequest.cs

#LineLine coverage
 1namespace Shared.Contracts;
 2
 3/// <summary>
 4/// Сообщение от UI → Extension.
 5/// Ответ ожидается как <see cref="VsResponse"/>
 6/// </summary>
 7public class VsRequest
 8{
 9    /// <summary>
 10    /// "getActiveDocument", "insertText" и т.д.
 11    /// </summary>
 712    public string Action { get; set; } = string.Empty;
 13
 14    /// <summary>
 15    /// JSON-строка или serialized object
 16    /// </summary>
 417    public string? Payload { get; set; }
 18
 19    /// <summary>
 20    /// Для сопоставления ответа
 21    /// </summary>
 322    public string CorrelationId { get; set; } = Guid.NewGuid().ToString();
 23}