< Summary

Class:MUNity.Schema.Simulation.UserRoleChangedEventArgs
Assembly:MUNity.Schema
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNitySchema\Schema\Simulation\Roles\UserRoleChangedEventArgs.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:40
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:4
Method coverage:0% (0 of 4)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_SimulationId()100%10%
get_UserId()100%10%
get_RoleId()100%10%
.ctor(...)100%10%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Text;
 4
 5namespace MUNity.Schema.Simulation
 6{
 7    /// <summary>
 8    /// Event Args when a user has been given a new role
 9    /// </summary>
 10    public class UserRoleChangedEventArgs : EventArgs
 11    {
 12        /// <summary>
 13        /// The id of the simulation that the changes had been made to
 14        /// </summary>
 015        public int SimulationId { get; private set; }
 16
 17        /// <summary>
 18        /// The SimulationUserId of the user that is affected by this changed
 19        /// </summary>
 020        public int UserId { get; private set; }
 21
 22        /// <summary>
 23        /// The id of the new role that has been selected.
 24        /// </summary>
 025        public int RoleId { get; private set; }
 26
 27        /// <summary>
 28        /// Creates a new UserRoleChanged EventArgs with all needed parameters
 29        /// </summary>
 30        /// <param name="simulationId"></param>
 31        /// <param name="userId"></param>
 32        /// <param name="roleId"></param>
 033        public UserRoleChangedEventArgs(int simulationId, int userId, int roleId)
 034        {
 035            this.SimulationId = simulationId;
 036            this.UserId = userId;
 037            this.RoleId = roleId;
 038        }
 39    }
 40}