< Summary

Class:MUNity.Database.Models.Simulation.AgendaItem
Assembly:MUNity.Database
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Simulation\AgendaItem.cs
Covered lines:0
Uncovered lines:14
Coverable lines:14
Total lines:48
Line coverage:0% (0 of 14)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:11
Method coverage:0% (0 of 11)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_AgendaItemId()100%10%
get_Name()100%10%
get_Description()100%10%
get_Status()100%10%
get_PlannedDate()100%10%
get_DueDate()100%10%
get_DoneDate()100%10%
get_OrderIndex()100%10%
get_Petitions()100%10%
get_Simulation()100%10%
.ctor()100%10%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\Simulation\AgendaItem.cs

#LineLine coverage
 1using MUNity.Base;
 2using System;
 3using System.Collections.Generic;
 4using System.Linq;
 5using System.Threading.Tasks;
 6
 7namespace MUNity.Database.Models.Simulation;
 8
 9/// <summary>
 10/// A Simulation (virtual Committee) can have multiple AgendaItems. Each AgendaItem can have multiple petitions.
 11/// </summary>
 12public class AgendaItem
 13{
 14    /// <summary>
 15    /// The index to identify the agenda item at the backend.
 16    /// </summary>
 017    public int AgendaItemId { get; set; }
 18
 19    /// <summary>
 20    /// A displayname of the agenda Item.
 21    /// </summary>
 022    public string Name { get; set; }
 023    public string Description { get; set; }
 024    public EAgendaItemStatuses Status { get; set; }
 025    public DateTime? PlannedDate { get; set; }
 026    public DateTime? DueDate { get; set; }
 027    public DateTime? DoneDate { get; set; }
 028    public int OrderIndex { get; set; }
 029    public ICollection<Petition> Petitions { get; set; }
 30
 031    public Simulation Simulation { get; set; }
 32
 033    public AgendaItem()
 034    {
 035        this.Petitions = new List<Petition>();
 036    }
 37    //public AgendaItem(IAgendaItem agendaItem)
 38    //{
 39    //    this.Name = agendaItem.Name;
 40    //    this.Description = agendaItem.Description;
 41    //    this.Status = agendaItem.Status;
 42    //    this.PlannedDate = agendaItem.PlannedDate;
 43    //    this.DueDate = agendaItem.DueDate;
 44    //    this.DoneDate = agendaItem.DoneDate;
 45    //    this.OrderIndex = agendaItem.OrderIndex;
 46    //    this.Petitions = new List<Petition>();
 47    //}
 48}