< Summary

Information
Class: Services.FidSupplierLinkServices.FidSupplierLinkRefreshResult
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/FidSupplierLinkServices/FidSupplierLinkModels.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 18
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%
get_Overview()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/FidSupplierLinkServices/FidSupplierLinkModels.cs

#LineLine coverage
 1using Services.ApiServices.FidApi.Models;
 2
 3namespace Services.FidSupplierLinkServices;
 4
 5public enum FidSupplierLinkState { Linked, Unlinked, Orphaned, FeedUnavailable }
 6public sealed record FidSupplierLinkInput(string FidSupplierName, string? ProviderKey, string? Note);
 7public sealed record FidSupplierLinkRow(
 8    string FidSupplierName, string? ProviderKey, string? Note, FidSupplierLinkState State,
 9    long? Rows, long? FidRowsAtLink, DateTime? LastImportedAtUtc,
 10    IReadOnlyList<FidSupplierWarehouse> Warehouses, DateTime? LinkedAtUtc, string? LinkedBy,
 11    bool IsAutoCartEnabled = true);
 12public sealed record FidSupplierLinkOverview(
 13    IReadOnlyList<FidSupplierLinkRow> Rows, int LinkedCount, int UnlinkedCount, int OrphanCount,
 14    DateTime? GeneratedAtUtc, string? FeedError, bool GlobalAutoCartEnabled = true);
 15
 16/// <summary>Результат ручного обновления списка поставщиков из фида.</summary>
 117public sealed record FidSupplierLinkRefreshResult(
 418    FidSupplierLinkOverview Overview, IReadOnlyList<string> NewSupplierNames, bool IsInitialSnapshot);