< Summary

Class:MUNity.Models.Resolution.ResolutionPreamble
Assembly:MUNity.Schema
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNitySchema\Models\Resolution\ResolutionPreamble.cs
Covered lines:0
Uncovered lines:7
Coverable lines:7
Total lines:34
Line coverage:0% (0 of 7)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:3
Method coverage:0% (0 of 3)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_PreambleId()100%10%
get_Paragraphs()100%10%
.ctor()100%10%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNitySchema\Models\Resolution\ResolutionPreamble.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Collections.ObjectModel;
 4using System.ComponentModel.DataAnnotations;
 5using System.Text;
 6
 7namespace MUNity.Models.Resolution
 8{
 9    /// <summary>
 10    /// The preamble of a resolution containing a list of paragraphs.
 11    /// </summary>
 12    public class ResolutionPreamble
 13    {
 14        /// <summary>
 15        /// The id of the preamble
 16        /// </summary>
 17        [Key]
 018        public string PreambleId { get; set; }
 19
 20        /// <summary>
 21        /// a list of paragraphs of the preamble.
 22        /// </summary>
 023        public List<PreambleParagraph> Paragraphs { get; set; }
 24
 25        /// <summary>
 26        /// creates a new preamble.
 27        /// </summary>
 028        public ResolutionPreamble()
 029        {
 030            PreambleId = Guid.NewGuid().ToString();
 031            Paragraphs = new List<PreambleParagraph>();
 032        }
 33    }
 34}