< Summary

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

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_ResolutionId()100%10%
get_Date()100%10%
get_Header()100%10%
get_Preamble()100%10%
get_OperativeSection()100%10%
.ctor()100%10%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel;
 4using System.ComponentModel.DataAnnotations;
 5using System.Runtime.CompilerServices;
 6using System.Text;
 7
 8namespace MUNity.Models.Resolution
 9{
 10
 11    /// <summary>
 12    /// A resolution is a type of document to work with inside a committee. The Resolution contains the three parts:
 13    /// Header, Preamble, OperativeSection.
 14    /// The Header is containing the general information of the document like name, submitter, topic etc.
 15    /// The Preamble contains a list of paragraphs.
 16    /// The operative section contains a list of paragraphs and amendments for the different paragraphs that are created
 17    /// </summary>
 18    public class Resolution
 19    {
 20
 21        /// <summary>
 22        /// An id to let the system identify the resolution. Note that the header contains a property for name or full n
 23        /// if you want to have another solution for your users to find the resolution easier. The Id is generated by th
 24        /// Resolution itself when it is created.
 25        /// </summary>
 26        [Key]
 027        public string ResolutionId { get; set; }
 28
 29
 30        /// <summary>
 31        /// A Date that is first set when the resolution is created and can be used as a last change date.
 32        /// </summary>
 033        public DateTime Date { get; set; }
 34
 35        /// <summary>
 36        /// The header of the resolution containing the general information of the document.
 37        /// </summary>
 038        public ResolutionHeader Header { get; set; }
 39
 40        /// <summary>
 41        /// The preamble of the resolution containing the different paragraphs.
 42        /// </summary>
 043        public ResolutionPreamble Preamble { get; set; }
 44
 45        /// <summary>
 46        /// The operative section of the resolution containing the paragraphs and amendments.
 47        /// </summary>
 048        public OperativeSection OperativeSection { get; set; }
 49
 50        /// <summary>
 51        /// Creates a new instance of a resolution with a new Id.
 52        /// </summary>
 053        public Resolution()
 054        {
 055            ResolutionId = Guid.NewGuid().ToString();
 056            Preamble = new ResolutionPreamble();
 057            OperativeSection = new OperativeSection();
 058            Header = new ResolutionHeader();
 059            Date = DateTime.Now;
 060        }
 61    }
 62}