Пример #1
0
        public void simplesetAmountPolicyOnCountry()
        {
            Assert.IsTrue(ss.setAmountPolicyOnCountry(zahi, store.getStoreId(), "Israel", 2, 10) > -1);

            LinkedList <Sale> SL = ss.viewSalesByStore(store.getStoreId());
            Sale sale            = SL.First.Value;

            Assert.IsTrue(ses.addProductToCart(itamar, sale.SaleId, 2) > 0);
            LinkedList <UserCart> sc = ses.getShoppingCartBeforeCheckout(itamar);
            Tuple <int, LinkedList <UserCart> > checkOut = ses.checkout(itamar, "Israel", "mezada 69", "1234");

            Assert.IsTrue(checkOut.Item1 == -1);
        }