20 lines
546 B
C#
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);
|
|
}
|
|
}
|