< Summary

Class:MUNity.Database.Models.Conference.Conference
Assembly:MUNity.Database
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Conference\Conference.cs
Covered lines:22
Uncovered lines:4
Coverable lines:26
Total lines:72
Line coverage:84.6% (22 of 26)
Covered branches:0
Total branches:0
Covered methods:15
Total methods:19
Method coverage:78.9% (15 of 19)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_ConferenceId()100%1100%
get_Name()100%1100%
get_FullName()100%1100%
get_ConferenceShort()100%1100%
get_StartDate()100%1100%
get_EndDate()100%1100%
get_CreationDate()100%1100%
get_CreationUser()100%1100%
get_ApplicationOptions()100%10%
get_Committees()100%1100%
get_Roles()100%1100%
get_TeamRoleGroups()100%1100%
get_Delegations()100%10%
get_DelegationApplications()100%10%
get_WebPages()100%10%
get_ConferenceProject()100%1100%
get_Visibility()100%1100%
get_GeneralParticipationCost()100%1100%
.ctor()100%1100%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel.DataAnnotations;
 4using MUNity.Base;
 5using MUNity.Database.Models.Conference;
 6using MUNity.Database.Models.Conference.Roles;
 7using MUNity.Database.Models.User;
 8using MUNity.Database.Models.Website;
 9using MUNityCore.Models.User;
 10
 11namespace MUNity.Database.Models.Conference
 12{
 13
 14    /// <summary>
 15    /// A conference is as the name tells a single conference.
 16    /// Like Model United Nations London 2021. This means it is a single
 17    /// event of maybe a list of Model United Nation Conferences. If there are more
 18    /// the conference, for example a conference every year, then this will can be
 19    /// found by the Project
 20    /// </summary>
 21    public class Conference
 22    {
 23
 9124        [MaxLength(80)] public string ConferenceId { get; set; } = "";
 25
 26        [MaxLength(150)]
 1027        public string Name { get; set; }
 28
 29        [MaxLength(250)]
 1030        public string FullName { get; set; }
 31
 32        [MaxLength(18)]
 2633        public string ConferenceShort { get; set; }
 34
 235        public DateTime? StartDate { get; set; }
 36
 237        public DateTime? EndDate { get; set; }
 38
 1539        public DateTime CreationDate { get; set; }
 40
 141        public MunityUser CreationUser { get; set; }
 42
 043        public ConferenceApplicationOptions ApplicationOptions { get; set; }
 44
 1845        public ICollection<Committee> Committees { get; set; }
 46
 1147        public ICollection<AbstractConferenceRole> Roles { get; set; }
 48
 1049        public ICollection<TeamRoleGroup> TeamRoleGroups { get; set; }
 50
 051        public ICollection<Delegation> Delegations { get; set; }
 52
 053        public ICollection<DelegationApplication> DelegationApplications { get; set; }
 54
 055        public ICollection<ConferenceWebPage> WebPages { get; set; }
 56
 857        public Project ConferenceProject { get; set; }
 58
 859        public EConferenceVisibilityMode Visibility { get; set; }
 60
 261        public decimal GeneralParticipationCost { get; set; }
 62
 863        public Conference()
 864        {
 865            Committees = new List<Committee>();
 866            TeamRoleGroups = new List<TeamRoleGroup>();
 867            Roles = new List<AbstractConferenceRole>();
 868            Visibility = EConferenceVisibilityMode.Users;
 869            CreationDate = DateTime.Now;
 870        }
 71    }
 72}