mirror of https://github.com/Squidex/squidex.git
4 changed files with 72 additions and 5 deletions
@ -0,0 +1,50 @@ |
|||
// ==========================================================================
|
|||
// NoopAppPlanBillingManagerTests.cs
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
using System; |
|||
using System.Threading.Tasks; |
|||
using Squidex.Read.Apps.Services.Implementations; |
|||
using Xunit; |
|||
|
|||
namespace Squidex.Read.Apps |
|||
{ |
|||
public class NoopAppPlanBillingManagerTests |
|||
{ |
|||
private readonly NoopAppPlanBillingManager sut = new NoopAppPlanBillingManager(); |
|||
|
|||
[Fact] |
|||
public void Should_not_have_portal() |
|||
{ |
|||
Assert.False(sut.HasPortal); |
|||
} |
|||
|
|||
[Fact] |
|||
public void Should_provide_free_plan() |
|||
{ |
|||
Assert.Equal("infinite", sut.FreePlanId); |
|||
} |
|||
|
|||
[Fact] |
|||
public async Task Should_do_nothing_when_changing_plan() |
|||
{ |
|||
await sut.ChangePlanAsync(null, Guid.Empty, null, null); |
|||
} |
|||
|
|||
[Fact] |
|||
public async Task Should_return_true_for_payment_option_check() |
|||
{ |
|||
Assert.True(await sut.HasPaymentOptionsAsync(null)); |
|||
} |
|||
|
|||
[Fact] |
|||
public async Task Should_not_return_portal_link() |
|||
{ |
|||
Assert.Equal(string.Empty, await sut.GetPortalLinkAsync(null)); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue