< Summary

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

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_ConferenceParticipationCostRuleId()100%10%
get_Conference()100%1100%
get_Committee()100%1100%
get_Delegation()100%1100%
get_Role()100%1100%
get_CostRuleTitle()100%1100%
get_UserMinAge()100%1100%
get_UserMaxAge()100%1100%
get_Costs()100%1100%
get_CutPercentage()100%1100%
get_AddPercentage()100%1100%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using System.Threading.Tasks;
 6using MUNity.Database.Models.Conference;
 7using MUNity.Database.Models.Conference.Roles;
 8
 9namespace MUNity.Database.Models.Conference;
 10
 11/// <summary>
 12/// Cost Rules can be used to define certain rules on pricing a conference, participating in a specific role
 13/// or committee differently. Note that the general cost will be the Conference.GeneralParticipationCost.
 14/// You can either use a CostRule to change the cost with the Costs-Property or use the CutPercentage/AddPercentage
 15/// to calculate a new price.
 16///
 17/// You can also add some logic like letting different ages be handled differently.
 18/// </summary>
 19public class ConferenceParticipationCostRule
 20{
 021    public int ConferenceParticipationCostRuleId { get; set; }
 22
 123    public Models.Conference.Conference Conference { get; set; }
 24
 125    public Committee Committee { get; set; }
 26
 127    public Delegation Delegation { get; set; }
 28
 129    public AbstractConferenceRole Role { get; set; }
 30
 131    public string CostRuleTitle { get; set; }
 32
 133    public byte? UserMinAge { get; set; }
 34
 135    public byte? UserMaxAge { get; set; }
 36
 137    public decimal? Costs { get; set; }
 38
 139    public double? CutPercentage { get; set; }
 40
 141    public double? AddPercentage { get; set; }
 42}