< Summary

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

File(s)

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

#LineLine coverage
 1namespace Shared.Contracts;
 2
 3/// <summary>
 4/// Сообщение Extension → UI.
 5/// Инициатор Extension. Ответа может не быть.
 6/// Если ответ будет, то цепочка выглядит так <see cref="VsMessage"/> → <see cref="VsResponse"/> → <see cref="VsRequest"
 7/// </summary>
 8public class VsMessage
 9{
 10    /// <summary>
 11    /// Тип события
 12    /// </summary>
 013    public string Action { get; set; } = string.Empty;
 14
 15    /// <summary>
 16    /// Для сопоставления ответа, если он будет
 17    /// </summary>
 018    public string CorrelationId { get; set; } = Guid.NewGuid().ToString();
 19
 20    /// <summary>
 21    /// Нагрузка в JSON
 22    /// </summary>
 023    public string? Payload { get; set; }
 24}