feat: add resource quotas, PayPal subscriptions and paid disk allowances
Calculate and enforce configurable resource consumption, expose balances in PostIt and document the rule in CGU. Add confirmed monthly PayPal credits and disk quotas of twice the free default for Discovery and five times for Premium, with payment reconciliation, migrations and regression tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
0728d2a3f7
commit
650e5f5e30
69 changed files with 19111 additions and 203 deletions
19
src/PostIt/PostIt.Tests/AboutTermsTests.cs
Normal file
19
src/PostIt/PostIt.Tests/AboutTermsTests.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using PostIt.ViewModels;
|
||||
|
||||
namespace PostIt.Tests;
|
||||
|
||||
public sealed class AboutTermsTests
|
||||
{
|
||||
[Fact]
|
||||
public void Terms_follow_the_configured_instance_and_changes_to_it()
|
||||
{
|
||||
var settings = new Settings();
|
||||
settings.Authentication.Authority = "https://first.example/";
|
||||
var model = new AboutPageViewModel(settings);
|
||||
Assert.Equal("https://first.example/Home/CGU", model.TermsUri.AbsoluteUri);
|
||||
Assert.Equal("https://first.example/ResourceSubscription", model.SubscriptionsUri.AbsoluteUri);
|
||||
settings.Authentication.Authority = "https://second.example";
|
||||
Assert.Equal("https://second.example/Home/CGU", model.TermsUri.AbsoluteUri);
|
||||
Assert.Equal("https://second.example/ResourceSubscription", model.SubscriptionsUri.AbsoluteUri);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue