Example #1
0
        public int GetYearQuantityDiscounts(int randomYearQuantity)
        {
            Discounts discounts = new Discounts(DiscountType.YEARLY);

            OpenYearQuantityDropdown();
            int yearQuantityCount = GetYearlyCount();

            discounts.ReadDiscountsFromList(DiscountYearList, yearQuantityCount);
            CloseYearQuantityDropdown();

            return(discounts.GetDiscountByKey(randomYearQuantity - 1));
        }
Example #2
0
        public int GetQuantityDiscounts(int randomQuantity)
        {
            Discounts discounts = new Discounts(DiscountType.LICENSE);

            OpenLicenseQuantityDropdown();
            int quantityCount = GetQuantityCount();

            discounts.ReadDiscountsFromList(DiscountRangeList, quantityCount);
            CloseLicenseQuantityDropdown();

            return(discounts.GetDiscountByKey(randomQuantity));
        }