< Summary

Information
Class: OzonOrdersWeb.Areas.PartnerOffice.Models.RuleLookups
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/PartnerOffice/Models/PartnerViewModels.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 41
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
.ctor(...)100%210%
get_Statuses()100%210%
get_Warehouses()100%210%
get_Clients()100%210%
get_Marketplaces()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/PartnerOffice/Models/PartnerViewModels.cs

#LineLine coverage
 1using OzonDomains.Models.Partners;
 2using Services.PartnerServices;
 3
 4namespace OzonOrdersWeb.Areas.PartnerOffice.Models;
 5
 6public sealed class PartnerCreateForm
 7{
 8    public string Name { get; set; } = string.Empty;
 9    public string Email { get; set; } = string.Empty;
 10    public string? GoogleEmail { get; set; }
 11}
 12
 13public sealed class PartnerMainForm
 14{
 15    public string Name { get; set; } = string.Empty;
 16    public string? Email { get; set; }
 17    public string? GoogleEmail { get; set; }
 18    public bool IsActive { get; set; }
 19    public bool NotifyEmail { get; set; }
 20    public bool NotifyTelegram { get; set; }
 21    public string? NotificationEmail { get; set; }
 22    public string? TelegramChatId { get; set; }
 23}
 24
 25public sealed class PartnerPermissionsForm
 26{
 27    public bool LabelPrint { get; set; }
 28    public bool Assemble { get; set; }
 29    public bool TrackNumber { get; set; }
 30}
 31
 32public sealed record RuleLookupOption(string Value, string Label);
 33
 34/// <summary>Справочники для редактора правил: что владелец может выбрать в условиях.</summary>
 035public sealed record RuleLookups(
 036    IReadOnlyList<RuleLookupOption> Statuses,
 037    IReadOnlyList<RuleLookupOption> Warehouses,
 038    IReadOnlyList<RuleLookupOption> Clients,
 039    IReadOnlyList<RuleLookupOption> Marketplaces);
 40
 41public sealed record PartnerEditViewModel(PartnerDetailsDto Partner, RuleLookups Lookups);