< Summary

Information
Class: OzonDomains.Models.Authorization.UserAppRole
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/Authorization/UserAppRole.cs
Line coverage
50%
Covered lines: 3
Uncovered lines: 3
Coverable lines: 6
Total lines: 22
Line coverage: 50%
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_Id()100%210%
get_UserId()100%11100%
get_AppRoleId()100%11100%
get_AppRole()100%210%
get_AssignedAt()100%11100%
get_AssignedBy()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/Authorization/UserAppRole.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2
 3namespace OzonDomains.Models.Authorization;
 4
 5/// <summary>
 6/// Связь пользователь — прикладная роль.
 7/// </summary>
 8public class UserAppRole
 9{
 010    public int Id { get; set; }
 11
 12    [Required, MaxLength(450)]
 7413    public string UserId { get; set; } = string.Empty;
 14
 3715    public int AppRoleId { get; set; }
 016    public virtual AppRole AppRole { get; set; } = null!;
 17
 3718    public DateTime AssignedAt { get; set; } = DateTime.UtcNow;
 19
 20    [MaxLength(450)]
 021    public string? AssignedBy { get; set; }
 22}