< Summary

Class:MUNity.Schema.Simulation.RolesChangedEventArgs
Assembly:MUNity.Schema
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNitySchema\Schema\Simulation\Roles\RolesChangedEventArgs.cs
Covered lines:0
Uncovered lines:7
Coverable lines:7
Total lines:35
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_SimulationId()100%10%
get_Roles()100%10%
.ctor(...)100%10%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNitySchema\Schema\Simulation\Roles\RolesChangedEventArgs.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Text;
 4
 5namespace MUNity.Schema.Simulation
 6{
 7    /// <summary>
 8    /// Event arguments for when the roles of a simulation have changed.
 9    /// This could mean that a role has been added, removed or been renamed.
 10    /// It will contain the List of new Roles.
 11    /// </summary>
 12    public class RolesChangedEventArgs : EventArgs
 13    {
 14        /// <summary>
 15        /// The Id of the Simulation that is effected by the changes
 16        /// </summary>
 017        public int SimulationId { get; private set; }
 18
 19        /// <summary>
 20        /// The current or new roles
 21        /// </summary>
 022        public IEnumerable<SimulationRoleDto> Roles { get; private set; }
 23
 24        /// <summary>
 25        /// Create event arguments with all given parameters
 26        /// </summary>
 27        /// <param name="simulationId"></param>
 28        /// <param name="roles"></param>
 029        public RolesChangedEventArgs(int simulationId, IEnumerable<SimulationRoleDto> roles)
 030        {
 031            this.SimulationId = simulationId;
 032            this.Roles = roles;
 033        }
 34    }
 35}