Exemple #1
0
        public void NotRequireUpdateOfAvailableLicensesForSubscriptionWhenOriginalAndNewNumberOfAvailableLicensesAreTheSame()
        {
            var result = new CspSubsctriptionAvailableLicenseNumberAlignmentResult(
                SubscriptionIdOf("4a8b014f-8f37-47e1-9f72-41727b4973cb"),
                LicenseQuantityOf(2),
                LicenseQuantityOf(2));

            result.RequiresUpdateOfAvailableLicensesForSubscription
            .Should().BeFalse();
        }
Exemple #2
0
        public void RequireUpdateOfAvailableLicensesForSubscriptionWhenOriginalNumberOfAvailableLicensesDiffersFromTheNewOne()
        {
            var result = new CspSubsctriptionAvailableLicenseNumberAlignmentResult(
                SubscriptionIdOf("4a8b014f-8f37-47e1-9f72-41727b4973cb"),
                LicenseQuantityOf(3),
                LicenseQuantityOf(2));

            result.RequiresUpdateOfAvailableLicensesForSubscription
            .Should().BeTrue();
        }