< Summary

Class:MUNity.Database.Models.Conference.Project
Assembly:MUNity.Database
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Conference\Project.cs
Covered lines:10
Uncovered lines:0
Coverable lines:10
Total lines:47
Line coverage:100% (10 of 10)
Covered branches:0
Total branches:0
Covered methods:8
Total methods:8
Method coverage:100% (8 of 8)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_ProjectId()100%1100%
get_ProjectName()100%1100%
get_ProjectShort()100%1100%
get_ProjectOrganization()100%1100%
get_Conferences()100%1100%
get_CreationUser()100%1100%
.ctor()100%1100%
get_IsDeleted()100%1100%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel.DataAnnotations;
 4using System.ComponentModel.DataAnnotations.Schema;
 5using System.Linq;
 6using System.Runtime.Serialization;
 7using System.Text.Json.Serialization;
 8using System.Threading.Tasks;
 9using MUNity.Database.Interfaces;
 10using MUNity.Database.Models.User;
 11
 12namespace MUNity.Database.Models.Conference;
 13
 14/// <summary>
 15/// An organization can host different projects. For example could the project group
 16/// all conferences inside a specific city over the years:
 17/// Model United Nations Berlin 2015
 18/// Model United Nations Berlin 2016
 19///
 20/// The organization could also group different styles of conferences inside a project
 21/// for example:
 22/// Model United Nations in the classroom
 23/// Model United Nations in the university
 24/// </summary>
 25public class Project : IIsDeleted
 26{
 2827    public string ProjectId { get; set; } = "";
 28
 29    [MaxLength(250)]
 930    public string ProjectName { get; set; }
 31
 32    [MaxLength(20)]
 2633    public string ProjectShort { get; set; }
 34
 935    public Organization.Organization ProjectOrganization { get; set; }
 36
 237    public ICollection<Conference> Conferences { get; set; }
 38
 139    public MunityUser CreationUser { get; set; }
 40
 941    public Project()
 942    {
 43
 944    }
 45
 146    public bool IsDeleted { get; set; }
 47}