Пример #1
0
        public void simplesetAmountPolicyOnCategory()
        {
            Assert.IsTrue(ss.setAmountPolicyOnCategory(zahi, store.getStoreId(), "Drinks", 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);
        }