public void PriceInTable(Product addingProduct)
        {
            HomePage homePage = LoadApplication();

            Thread.Sleep(1000); // only for presentation
            homePage.AddProductToCart(addingProduct);
            Thread.Sleep(1000); // only for presentation
            shoppingCartPage = homePage
                               .GotoShoppingCartPage();
            shoppingCartPageUpdate = shoppingCartPage
                                     .UpdateMessage(addingProduct, ShoppingCartData.VALID_CHECK);
            Thread.Sleep(1000); // only for presentation
            Console.WriteLine(shoppingCartPageUpdate.GetTablePriceSubTotal()
                              + " + " + shoppingCartPageUpdate.GetTablePriceEcoTax()
                              + " + " + shoppingCartPageUpdate.GetTablePriceVat() //only for presentation
                              + " == " + shoppingCartPageUpdate.GetTablePriceTotal());
            Assert.IsTrue(shoppingCartPageUpdate.GetTablePriceSubTotal()
                          + shoppingCartPageUpdate.GetTablePriceEcoTax()
                          + shoppingCartPageUpdate.GetTablePriceVat()
                          == shoppingCartPageUpdate.GetTablePriceTotal());

            Console.WriteLine(shoppingCartPageUpdate.GetTablePriceVat() +
                              "==" + ((shoppingCartPageUpdate.GetTablePriceSubTotal() + //only for presentation
                                       "*" + ShoppingCartData.FOR_VAT_1) + "/" + ShoppingCartData.FOR_VAT_2));
            Assert.IsTrue(shoppingCartPageUpdate.GetTablePriceVat()
                          == ((shoppingCartPageUpdate.GetTablePriceSubTotal()
                               * ShoppingCartData.FOR_VAT_1) / ShoppingCartData.FOR_VAT_2));
        }
        public void PriceEqual(Product addingProduct)
        {
            HomePage homePage = LoadApplication();

            Thread.Sleep(1000); // only for presentation
            homePage.AddProductToCart(addingProduct);
            Thread.Sleep(1000); // only for presentation
            shoppingCartPage = homePage
                               .GotoShoppingCartPage();
            shoppingCartPageUpdate = shoppingCartPage
                                     .UpdateMessage(addingProduct, ShoppingCartData.VALID_CHECK);
            Thread.Sleep(1000);                                                // only for presentation
            Console.WriteLine(shoppingCartPageUpdate.TotalPrice(addingProduct) //only for presentation
                              + "==" + shoppingCartPageUpdate.GetTablePriceTotal());
            Assert.IsTrue(shoppingCartPageUpdate.TotalPrice(addingProduct)
                          == shoppingCartPageUpdate.GetTablePriceTotal());
        }
        public void PriceAfterUpdate(Product addingProduct)
        {
            HomePage homePage = LoadApplication();

            Thread.Sleep(1000); // only for presentation
            homePage.AddProductToCart(addingProduct);
            Thread.Sleep(1000); // only for presentation
            shoppingCartPage = homePage
                               .GotoShoppingCartPage();
            shoppingCartPageUpdate = shoppingCartPage
                                     .UpdateMessage(addingProduct, ShoppingCartData.VALID_CHECK);
            Thread.Sleep(1000); // only for presentation

            Assert.IsTrue(shoppingCartPageUpdate
                          .GetData(addingProduct) == ShoppingCartData.VALID_CHECK);

            Assert.IsTrue((shoppingCartPageUpdate
                           .UnitPrice(addingProduct) * shoppingCartPageUpdate.GetIntData(addingProduct))
                          == shoppingCartPageUpdate.TotalPrice(addingProduct));
        }