< Summary

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

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_ParticipationId()100%10%
get_Role()100%1100%
get_User()100%1100%
get_IsMainRole()100%1100%
get_Cost()100%1100%
get_Paid()100%1100%
get_SupportingResolutions()100%10%
get_ParticipationSecret()100%1100%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Conference\Participation.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;
 12using MUNity.Database.Models.Resolution;
 13
 14namespace MUNity.Database.Models.Conference;
 15
 16/// <summary>
 17/// The participation of a user for a role inside of a conference.
 18/// </summary>
 19public class Participation
 20{
 21
 022    public int ParticipationId { get; set; }
 23
 224    public AbstractConferenceRole Role { get; set; }
 25
 226    public MunityUser User { get; set; }
 27
 228    public bool IsMainRole { get; set; }
 29
 230    public decimal Cost { get; set; }
 31
 232    public decimal Paid { get; set; }
 33
 034    public ICollection<ResaSupporter> SupportingResolutions { get; set; }
 35
 36    /// <summary>
 37    /// The ParticipationSecret is a Key that can identify the user as a participant
 38    /// it should be Unique and be usable and can be used as a shared password between the
 39    /// team and a user to check the users identity when at the conference.
 40    /// </summary>
 41    [MaxLength(200)]
 142    public string ParticipationSecret { get; set; }
 43
 44}