< Summary

Information
Class: OzonOrdersWeb.Areas.Studio2.ViewModels.EmailRouting.EmailImapSettingsEditViewModel
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/EmailRouting/EmailImapSettingsEditViewModel.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 30
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_Host()100%210%
get_Port()100%210%
get_UserName()100%210%
get_Password()100%210%
get_UseSsl()100%210%
get_Folder()100%210%
get_FetchLimit()100%210%
get_HasSavedPassword()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/EmailRouting/EmailImapSettingsEditViewModel.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2
 3namespace OzonOrdersWeb.Areas.Studio2.ViewModels.EmailRouting;
 4
 5public class EmailImapSettingsEditViewModel
 6{
 7    [Required(ErrorMessage = "Укажите IMAP-сервер")]
 8    [MaxLength(200)]
 09    public string Host { get; set; } = "imap.yandex.ru";
 10
 11    [Range(1, 65535)]
 012    public int Port { get; set; } = 993;
 13
 14    [Required(ErrorMessage = "Укажите email")]
 15    [MaxLength(200)]
 016    public string UserName { get; set; } = string.Empty;
 17
 18    [MaxLength(200)]
 019    public string? Password { get; set; }
 20
 021    public bool UseSsl { get; set; } = true;
 22
 23    [MaxLength(100)]
 024    public string Folder { get; set; } = "INBOX";
 25
 26    [Range(1, 500)]
 027    public int FetchLimit { get; set; } = 20;
 28
 029    public bool HasSavedPassword { get; set; }
 30}