< Summary

Information
Class: Services.ApiServices._1CApi.Nomenclature.NomenclatureNotification
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/1CApi/Nomenclature/INomenclatureNotificationSink.cs
Line coverage
92%
Covered lines: 12
Uncovered lines: 1
Coverable lines: 13
Total lines: 36
Line coverage: 92.3%
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%
get_Kind()100%11100%
get_OrderId()100%11100%
get_ShipmentNumber()100%11100%
get_ProductName()100%11100%
get_Article()100%11100%
get_ProductKey()100%11100%
get_ProducerName()100%11100%
get_NormalizedArticle()100%210%
get_Status()100%11100%
get_Reason()100%11100%
get_RefKey()100%11100%
get_ExistingBrands()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/1CApi/Nomenclature/INomenclatureNotificationSink.cs

#LineLine coverage
 1using OzonDomains.Nomenclature;
 2
 3namespace Services.ApiServices._1CApi.Nomenclature;
 4
 5public enum NomenclatureNotificationKind
 6{
 7    Created,
 8    BrandMismatchCreated,
 9    NotFound,
 10    Duplicate,
 11    InputConflict,
 12    ProducerUnknown,
 13    Ambiguous,
 14    BrandMismatch,
 15    CreateFailed
 16}
 17
 18/// <summary>Сообщение о решении резолвера. Реализация уведомления не должна менять результат проведения.</summary>
 1119public sealed record NomenclatureNotification(
 2520    NomenclatureNotificationKind Kind,
 5921    int OrderId,
 2222    string? ShipmentNumber,
 1123    string? ProductName,
 1124    string? Article,
 1125    string? ProductKey,
 1126    string? ProducerName,
 027    string NormalizedArticle,
 1128    NomenclatureMatchStatus Status,
 1129    string Reason,
 3630    Guid? RefKey,
 3331    IReadOnlyList<string> ExistingBrands);
 32
 33public interface INomenclatureNotificationSink
 34{
 35    Task NotifyAsync(NomenclatureNotification notification, CancellationToken cancellationToken = default);
 36}