Beispiel #1
0
        public void AddProductToCart(string product, string catalogOption)
        {
            var catalogPageObject = new CatalogPageObject();

            catalogPageObject.AddProductToCart(product);

            switch (catalogOption.ToString())
            {
            case "continueshopping":
                catalogPageObject.ContinueShopping();
                break;

            case "gotocart":
                catalogPageObject.GoToCart();
                break;

            default:
                catalogPageObject.ContinueShopping();
                break;
            }
        }
Beispiel #2
0
        public bool isCategoryShown(string category)
        {
            var catalogPageObject = new CatalogPageObject();

            return(catalogPageObject.isCategoryShown(category));
        }
Beispiel #3
0
        public double[] GetProductPrices()
        {
            var catalogPageObject = new CatalogPageObject();

            return(catalogPageObject.GetProductPrices());
        }
Beispiel #4
0
        public string GetLowerPriceRange()
        {
            var catalogPageObject = new CatalogPageObject();

            return(catalogPageObject.GetLowerPriceRange());
        }
Beispiel #5
0
        public void SetLowerPriceRange(string lower)
        {
            var catalogPageObject = new CatalogPageObject();

            catalogPageObject.SetLowerPriceRange(lower);
        }
Beispiel #6
0
        public void SetUpperPriceRange(string upper)
        {
            var catalogPageObject = new CatalogPageObject();

            catalogPageObject.SetUpperPriceRange(upper);
        }
Beispiel #7
0
        public int GetCurrentProductCount()
        {
            var catalogPageObject = new CatalogPageObject();

            return(catalogPageObject.CurrentProductCount());
        }