< Summary

Class:MUNity.Database.Models.Resolution.ResaElement
Assembly:MUNity.Database
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Resolution\ResaElement.cs
Covered lines:22
Uncovered lines:0
Coverable lines:22
Total lines:51
Line coverage:100% (22 of 22)
Covered branches:0
Total branches:0
Covered methods:15
Total methods:15
Method coverage:100% (15 of 15)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_ResaElementId()100%1100%
get_Topic()100%1100%
get_Name()100%1100%
get_FullName()100%1100%
get_AgendaItem()100%1100%
get_Session()100%1100%
get_SubmitterName()100%1100%
get_CommitteeName()100%1100%
get_CreatedDate()100%1100%
get_PreambleParagraphs()100%1100%
get_OperativeParagraphs()100%1100%
get_SupporterNames()100%1100%
get_AddAmendments()100%1100%
get_Authorization()100%1100%
.ctor()100%1100%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel.DataAnnotations;
 4using System.Linq;
 5using System.Threading.Tasks;
 6using MUNity.Database.Models.User;
 7
 8namespace MUNity.Database.Models.Resolution;
 9
 10public class ResaElement
 11{
 12
 13    [Key]
 1514    public string ResaElementId { get; set; }
 15
 1416    public string Topic { get; set; } = "";
 17
 1418    public string Name { get; set; } = "";
 19
 1420    public string FullName { get; set; } = "";
 21
 1422    public string AgendaItem { get; set; } = "";
 23
 1424    public string Session { get; set; } = "";
 25
 1426    public string SubmitterName { get; set; } = "";
 27
 1428    public string CommitteeName { get; set; } = "";
 29
 1430    public DateTime CreatedDate { get; set; } = DateTime.Now;
 31
 1232    public ICollection<ResaPreambleParagraph> PreambleParagraphs { get; set; }
 33
 1634    public ICollection<ResaOperativeParagraph> OperativeParagraphs { get; set; }
 35
 436    public string SupporterNames { get; set; }
 37
 1138    public ICollection<ResaAddAmendment> AddAmendments { get; set; }
 39
 1140    public ResolutionAuth Authorization { get; set; }
 41
 1042    public ResaElement()
 1043    {
 1044        this.ResaElementId = Guid.NewGuid().ToString();
 1045        this.PreambleParagraphs = new List<ResaPreambleParagraph>();
 1046        this.OperativeParagraphs = new List<ResaOperativeParagraph>();
 47        //this.Supporters = new List<ResaSupporter>();
 1048        this.AddAmendments = new List<ResaAddAmendment>();
 1049        this.Authorization = new ResolutionAuth();
 1050    }
 51}