Files
jobtrackingapp/JobTrackerApi.Tests/AccountPlansTests.cs
T
cesnimda 158970fa01
CI and Deploy / test (push) Successful in 2m39s
CI and Deploy / deploy (push) Successful in 55s
feat: enforce account usage limits
2026-07-30 23:14:42 +02:00

20 lines
546 B
C#

using JobTrackerApi.Models;
using Xunit;
namespace JobTrackerApi.Tests;
public sealed class AccountPlansTests
{
[Fact]
public void Premium_role_receives_higher_cost_capabilities()
{
var free = AccountPlans.ForRoles(Array.Empty<string>());
var premium = AccountPlans.ForRoles(new[] { "Premium" });
Assert.False(free.AdvancedAi);
Assert.True(premium.AdvancedAi);
Assert.True(premium.MonthlyAiCalls > free.MonthlyAiCalls);
Assert.True(premium.StorageBytes > free.StorageBytes);
}
}