Beispiel #1
0
        public override ADL_OrderLine MapOrderLinetoDLOrderLine(OrderLine orderline)
        {
            var result = new MOCK_DL_OrderLine();

            result.OrderId  = orderline.OrderId;
            result.ItemId   = orderline.ItemId;
            result.Quantity = orderline.Quantity;

            return(result);
        }
Beispiel #2
0
        private ADL_OrderLine Get_DL_OrderLine(long ItemId, int quantity, long OrderId)
        {
            ADL_OrderLine result;

            if (MockOrderLines)
            {
                result = new MOCK_DL_OrderLine();
            }
            else
            {
                result = new DL_OrderLine();
            }

            result.ItemId   = ItemId;
            result.Quantity = quantity;
            result.OrderId  = OrderId;

            return(result);
        }