< Summary

Information
Class: OzonOrdersWeb.ViewModels.UserViewModels.RegisterViewModel
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/UserViewModels/RegisterViewModel.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 23
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_Username()100%210%
get_Password()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/UserViewModels/RegisterViewModel.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel.DataAnnotations;
 4using System.Linq;
 5using System.Text;
 6using System.Threading.Tasks;
 7
 8namespace OzonOrdersWeb.ViewModels.UserViewModels
 9{
 10    public class RegisterViewModel
 11    {
 12        [Required(ErrorMessage = "Username is required")]
 13        [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength 
 14        [Display(Name = "Username")]
 015        public string Username { get; set; } = string.Empty;
 16
 17        [Required(ErrorMessage = "Password is required")]
 18        [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength 
 19        [DataType(DataType.Password)]
 20        [Display(Name = "Password")]
 021        public string Password { get; set; } = string.Empty;
 22    }
 23}

Methods/Properties

get_Username()
get_Password()