Exemplo n.º 1
0
        public async void ThePricingPlansEnumsContainsAllAndOnlyTheAvailablePricingPlans()
        {
            var(_, user) = await SetupTestUser();

            var availablePlans = await WorkspaceHelper.GetAllAvailablePricingPlans(user);

            var convertedPlans = availablePlans.Select(plan => (PricingPlans)plan);

            Enum.GetNames(typeof(PricingPlans)).Length.Should().Be(availablePlans.Count);
            Enum.GetValues(typeof(PricingPlans)).Should().Contain(convertedPlans);
        }