< Summary

Class:MUNity.Database.BaseData.DefaultAuthorizations
Assembly:MUNity.Database
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\BaseData\DefaultAuthorizations.cs
Covered lines:23
Uncovered lines:0
Coverable lines:23
Total lines:37
Line coverage:100% (23 of 23)
Covered branches:0
Total branches:0
Covered methods:1
Total methods:1
Method coverage:100% (1 of 1)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_UserRoles()100%1100%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNityDatabase\BaseData\DefaultAuthorizations.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using MUNity.Database.Models.User;
 3
 4namespace MUNity.Database.BaseData;
 5
 6public class DefaultAuthorizations
 7{
 8    public static IEnumerable<MunityRole> UserRoles
 9    {
 10        get
 111        {
 112            yield return new MunityRole()
 113            {
 114                Name = "Head-Admin",
 115                NormalizedName = "HEAD-ADMIN",
 116                CanCreateNewOrganizations = true,
 117                IsPlatformAdmin = true
 118            };
 19
 120            yield return new MunityRole()
 121            {
 122                Name = "Admin",
 123                NormalizedName = "ADMIN",
 124                CanCreateNewOrganizations = true,
 125                IsPlatformAdmin = true
 126            };
 27
 128            yield return new MunityRole()
 129            {
 130                Name = "Trusted-User",
 131                NormalizedName = "TRUSTED-USER",
 132                CanCreateNewOrganizations = true,
 133                IsPlatformAdmin = false
 134            };
 135        }
 36    }
 37}

Methods/Properties

get_UserRoles()