mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 09:01:10 +00:00
25 lines
865 B
C#
25 lines
865 B
C#
#region ========================================================================= USING =====================================================================================
|
|
using Nemera.Application.Common.Infrastructure.Authorization;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
#endregion
|
|
|
|
namespace Nemera.Application.UnitTests.Common.Infrastructure.Authorization;
|
|
|
|
/// <summary>
|
|
/// Contains unit tests for the <see cref="AuthorizationRoles"/> class.
|
|
/// </summary>
|
|
[ExcludeFromCodeCoverage]
|
|
public class AuthorizationRolesTests
|
|
{
|
|
[Fact]
|
|
public void ADMIN_WhenRead_ShouldBeAdmin()
|
|
{
|
|
// The role name is written into seeded database rows and compared during authorization checks, so it must stay stable across releases.
|
|
// Act
|
|
string role = AuthorizationRoles.ADMIN;
|
|
|
|
// Assert
|
|
Assert.Equal("Admin", role);
|
|
}
|
|
}
|