Exemple #1
0
        public void LastLoadedOrderPaidAndSent()
        {
            OrderDB db           = new OrderDB();
            Order2  lastOrder    = SimpleRandomLoader.GetLastLoadedOrder();
            Order2  paidWebOrder = db.GetNextPaidOrder();

            paidWebOrder.OrderSent = true;
            paidWebOrder.Address   = lastOrder.Address;
            paidWebOrder.Password  = lastOrder.Password;
            db.SaveOrder(paidWebOrder);
            db.DeleteOrder(lastOrder.OrderNumber);
            waitingPaidOrder = db.GetNextPaidOrder();
        }
Exemple #2
0
        private void UpdateNextUnsentPaidOrder()
        {
            OrderDB db = new OrderDB();

            waitingPaidOrder = db.GetNextPaidOrder();
        }