using QuestionsApi.Models; using Xunit; namespace QuestionsApi.Tests; public sealed class CreditEconomyTests { [Fact] public void EarningPolicy_UsesTheAgreedRollingLimit() { Assert.Equal(20, CreditEconomy.RollingEarningLimit); Assert.Equal(TimeSpan.FromHours(24), CreditEconomy.EarningWindow); } [Fact] public void CreditStatus_DoesNotExposeUserOrOperationIdentifiers() { Assert.Null(typeof(CreditStatusResponse).GetProperty(nameof(UserCreditAccount.UserId))); Assert.Null(typeof(CreditStatusResponse).GetProperty(nameof(UserCreditAccount.RecentEarnings))); } }