< Summary

Class:MUNity.Database.Models.User.MunityRole
Assembly:MUNity.Database
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\User\MunityRole.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:20
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0
Covered methods:3
Total methods:3
Method coverage:100% (3 of 3)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_CanCreateNewOrganizations()100%1100%
get_IsPlatformAdmin()100%1100%
.ctor()100%1100%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\Models\User\MunityRole.cs

#LineLine coverage
 1using Microsoft.AspNetCore.Identity;
 2using System;
 3using System.Collections.Generic;
 4using System.Linq;
 5using System.Threading.Tasks;
 6
 7namespace MUNity.Database.Models.User;
 8
 9public class MunityRole : IdentityRole<string>
 10{
 11
 312    public bool CanCreateNewOrganizations { get; set; }
 13
 314    public bool IsPlatformAdmin { get; set; }
 15
 316    public MunityRole()
 317    {
 318        this.Id = Guid.NewGuid().ToString();
 319    }
 20}