< Summary

Class:MUNity.Database.Models.Conference.RoleApplication
Assembly:MUNity.Database
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Conference\RoleApplication.cs
Covered lines:5
Uncovered lines:1
Coverable lines:6
Total lines:39
Line coverage:83.3% (5 of 6)
Covered branches:0
Total branches:0
Covered methods:5
Total methods:6
Method coverage:83.3% (5 of 6)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_RoleApplicationId()100%10%
get_User()100%1100%
get_Role()100%1100%
get_ApplyDate()100%1100%
get_Title()100%1100%
get_Content()100%1100%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Conference\RoleApplication.cs

#LineLine coverage
 1using MUNity.Database.Models.Conference.Roles;
 2using MUNity.Database.Models.User;
 3using MUNityCore.Models.User;
 4using System;
 5using System.Collections.Generic;
 6using System.ComponentModel.DataAnnotations;
 7using System.ComponentModel.DataAnnotations.Schema;
 8using System.Linq;
 9using System.Runtime.Serialization;
 10using System.Text.Json.Serialization;
 11using System.Threading.Tasks;
 12
 13namespace MUNity.Database.Models.Conference;
 14
 15/// <summary>
 16/// If a user applies to a Role this will create a RoleApplication.
 17/// When an Application is Created to the Role there is a Link between the Role itself
 18/// The User that made the application plus some more information of this application
 19/// </summary>
 20public class RoleApplication
 21{
 022    public int RoleApplicationId { get; set; }
 23
 124    public MunityUser User { get; set; }
 25
 26
 127    public AbstractConferenceRole Role { get; set; }
 28
 129    public DateTime ApplyDate { get; set; }
 30
 31    [Required]
 32    [MaxLength(200)]
 133    public string Title { get; set; }
 34
 35
 136    public string Content { get; set; }
 37
 38
 39}