< Summary

Class:MUNity.Database.Models.Conference.Delegation
Assembly:MUNity.Database
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Conference\Delegation.cs
Covered lines:9
Uncovered lines:3
Coverable lines:12
Total lines:51
Line coverage:75% (9 of 12)
Covered branches:0
Total branches:0
Covered methods:7
Total methods:10
Method coverage:70% (7 of 10)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_DelegationId()100%1100%
get_Name()100%1100%
get_FullName()100%1100%
get_DelegationShort()100%1100%
get_Conference()100%1100%
get_ParentDelegation()100%10%
get_ChildDelegations()100%10%
get_Roles()100%1100%
get_DelegationApplications()100%10%
.ctor()100%1100%

File(s)

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

#LineLine coverage
 1using MUNity.Database.Models.Conference.Roles;
 2using System;
 3using System.Collections.Generic;
 4using System.ComponentModel.DataAnnotations;
 5using System.ComponentModel.DataAnnotations.Schema;
 6using System.Linq;
 7using System.Runtime.Serialization;
 8using System.Text.Json.Serialization;
 9using System.Threading.Tasks;
 10
 11namespace MUNity.Database.Models.Conference
 12{
 13
 14    /// <summary>
 15    /// A delegation is a model that groups different types of delegate roles
 16    ///
 17    /// <seealso cref="Roles.ConferenceDelegateRole"/>
 18    /// </summary>
 19    public class Delegation
 20    {
 75721        public string DelegationId { get; set; } = "";
 22
 23        [MaxLength(150)]
 24        [Required]
 15625        public string Name { get; set; }
 26
 27        [MaxLength(250)]
 428        public string FullName { get; set; }
 29
 30        /// <summary>
 31        /// Short Term with a max length of 10 characters
 32        /// </summary>
 33        [MaxLength(10)]
 434        public string DelegationShort { get; set; }
 35
 11736        public Conference Conference { get; set; }
 37
 038        public Delegation ParentDelegation { get; set; }
 39
 040        public ICollection<Delegation> ChildDelegations { get; set; }
 41
 14242        public ICollection<ConferenceDelegateRole> Roles { get; set; }
 43
 044        public ICollection<DelegationApplicationPickedDelegation> DelegationApplications { get; set; }
 45
 3946        public Delegation()
 3947        {
 48
 3949        }
 50    }
 51}