Files
jobtrackingapp/JobTrackerApi.Tests/AccountPlansTests.cs
T
cesnimda 792814b04e
CI and Deploy / test (push) Successful in 2m43s
CI and Deploy / deploy (push) Successful in 57s
feat: cap per-user AI token spend
2026-07-30 23:32:13 +02:00

21 lines
615 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.MonthlyAiTokens > free.MonthlyAiTokens);
Assert.True(premium.StorageBytes > free.StorageBytes);
}
}