< Summary

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

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_OperativeSectionId()100%10%
get_Paragraphs()100%10%
get_ChangeAmendments()100%10%
get_AddAmendments()100%10%
get_MoveAmendments()100%10%
get_DeleteAmendments()100%10%
.ctor()100%10%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Collections.ObjectModel;
 4using System.Text;
 5
 6namespace MUNity.Models.Resolution
 7{
 8    /// <summary>
 9    /// The Operative Section of a resolution containing the Paragraphs and the Amendments.
 10    /// </summary>
 11    public class OperativeSection
 12    {
 13        /// <summary>
 14        /// The Id of the operative Section
 15        /// </summary>
 016        public string OperativeSectionId { get; set; }
 17
 18        /// <summary>
 19        /// Operative Paragraphs of this Section. These are only the top Level Paragrapghs, Paragraphs can have Children
 20        /// </summary>
 021        public List<OperativeParagraph> Paragraphs { get; set; }
 22
 23        /// <summary>
 24        /// All Amendments to change the text of an operative paragraph.
 25        /// </summary>
 026        public List<ChangeAmendment> ChangeAmendments { get; set; }
 27
 28        /// <summary>
 29        /// All Alemdnemts to add a new operative paragraph
 30        /// </summary>
 031        public List<AddAmendment> AddAmendments { get; set; }
 32
 33        /// <summary>
 34        /// All amendments to move an operative paragraph to a new position.
 35        /// </summary>
 036        public List<MoveAmendment> MoveAmendments { get; set; }
 37
 38        /// <summary>
 39        /// All amendments to delete an operative paragraph.
 40        /// </summary>
 041        public List<DeleteAmendment> DeleteAmendments { get; set; }
 42
 43        /// <summary>
 44        /// Creates a new Operative Section and generates a new Guid for it and will init all list of paragraphs
 45        /// as new empty lists.
 46        /// </summary>
 047        public OperativeSection()
 048        {
 049            OperativeSectionId = Guid.NewGuid().ToString();
 050            Paragraphs = new List<OperativeParagraph>();
 051            ChangeAmendments = new List<ChangeAmendment>();
 052            AddAmendments = new List<AddAmendment>();
 053            MoveAmendments = new List<MoveAmendment>();
 054            DeleteAmendments = new List<DeleteAmendment>();
 055        }
 56    }
 57}