public override ADL_OrderLine MapOrderLinetoDLOrderLine(OrderLine orderline) { var result = new DL_OrderLine(); result.OrderId = orderline.OrderId; result.ItemId = orderline.ItemId; result.Quantity = orderline.Quantity; return(result); }
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); }