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)); }
public int GetQuantityDiscounts(int randomQuantity) { Discounts discounts = new Discounts(DiscountType.LICENSE); OpenLicenseQuantityDropdown(); int quantityCount = GetQuantityCount(); discounts.ReadDiscountsFromList(DiscountRangeList, quantityCount); CloseLicenseQuantityDropdown(); return(discounts.GetDiscountByKey(randomQuantity)); }