< Summary

Class:MUNity.Database.Models.Conference.DelegationApplication
Assembly:MUNity.Database
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Conference\DelegationApplication.cs
Covered lines:7
Uncovered lines:3
Coverable lines:10
Total lines:47
Line coverage:70% (7 of 10)
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_DelegationApplicationId()100%10%
get_DelegationWishes()100%1100%
get_Users()100%1100%
get_ApplyDate()100%1100%
get_FormulaInputs()100%1100%
get_OpenToPublic()100%1100%
get_Expose()100%10%
get_Status()100%1100%
get_GuestsCount()100%10%
get_Conference()100%1100%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using System.Threading.Tasks;
 6using MUNity.Base;
 7using MUNity.Database.Models.Website;
 8using MUNityBase;
 9
 10namespace MUNity.Database.Models.Conference
 11{
 12    public class DelegationApplication
 13    {
 014        public int DelegationApplicationId { get; set; }
 15
 716        public ICollection<DelegationApplicationPickedDelegation> DelegationWishes { get; set; }
 17
 618        public ICollection<DelegationApplicationUserEntry> Users { get; set; }
 19
 120        public DateTime ApplyDate { get; set; }
 21
 222       public ICollection<ConferenceDelegationApplicationFieldInput> FormulaInputs { get; set; }
 23
 24        /// <summary>
 25        /// Are Others able to see this application and add themselfs to it.
 26        /// </summary>
 227        public bool OpenToPublic { get; set; }
 28
 029        public string Expose { get; set; }
 30
 131        public ApplicationStatuses Status { get; set; }
 32
 33        /// <summary>
 34        /// Guests are people like teachers etc.
 35        /// when they are included a new empty Delegate Role needs to be created
 36        /// for each guest.
 37        /// </summary>
 038        public int? GuestsCount { get; set; }
 39
 40        /// <summary>
 41        /// It is possible to get the Conference by using the Delegation Wishes,
 42        /// but once an Applicaiton has no wishes on it, it can't be found anymore
 43        /// Thats why there is also a Conference Tag here.
 44        /// </summary>
 145        public Conference Conference { get; set; }
 46    }
 47}