Пример #1
0
        public void JustRun()
        {
            LineItem        item1 = new LineItem(1, 1, 1);
            LineItem        item2 = new LineItem(2, 2, 2);
            List <LineItem> list  = new List <LineItem>();

            list.Add(item1);
            list.Add(item2);
            LineItemList listObject = new LineItemList();

            listObject.SetLineItems(list);

            Order order = new Order(listObject);

            order.WriteOrder(new StreamWriter("thefile.txt"));
        }
Пример #2
0
 public Order(LineItemList lis)
 {
     _lineItemList = lis;
 }