mirror of
https://github.com/bitwarden/server.git
synced 2024-12-01 13:43:23 +01:00
721d2969d4
* Renamed ProductType to ProductTierType * Renamed Product properties to ProductTier * Moved ProductTierType to Bit.Core.Billing.Enums namespace from Bit.Core.Enums * Moved PlanType enum to Bit.Core.Billing.Enums * Moved StaticStore to Bit.Core.Billing.Models.StaticStore namespace * Added ProductType enum * dotnet format
32 lines
794 B
C#
32 lines
794 B
C#
using Bit.Core.Billing.Enums;
|
|
using Bit.Core.Utilities;
|
|
using Xunit;
|
|
|
|
namespace Bit.Core.Test.Utilities;
|
|
|
|
|
|
public class StaticStoreTests
|
|
{
|
|
[Fact]
|
|
public void StaticStore_Initialization_Success()
|
|
{
|
|
var plans = StaticStore.Plans.ToList();
|
|
Assert.NotNull(plans);
|
|
Assert.NotEmpty(plans);
|
|
Assert.Equal(22, plans.Count);
|
|
}
|
|
|
|
[Theory]
|
|
[InlineData(PlanType.EnterpriseAnnually)]
|
|
[InlineData(PlanType.EnterpriseMonthly)]
|
|
[InlineData(PlanType.TeamsMonthly)]
|
|
[InlineData(PlanType.TeamsAnnually)]
|
|
[InlineData(PlanType.TeamsStarter)]
|
|
public void StaticStore_GetPlan_Success(PlanType planType)
|
|
{
|
|
var plan = StaticStore.GetPlan(planType);
|
|
Assert.NotNull(plan);
|
|
Assert.Equal(planType, plan.Type);
|
|
}
|
|
}
|