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>
19 lines
798 B
C#
19 lines
798 B
C#
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);
|
|
}
|
|
}
|