예제 #1
0
            public MyOrdersController()
            {
                _orderHeader = new OrderHeader { ID = 3, Name = "header", OrderId = 1 };

                _orderLines = new[]
                {
                    new OrderLine { ID = 2, Name = "abc", OrderId = 1 },
                    new SpecialOrderLine { ID = 22, Name = "def", OrderId = 1, MoonCake = "GS"}
                };

                _myOrders = new[]
                {
                    new MyOrder { ID = 1, Name = "Book", OrderLines = _orderLines, OrderHeader = _orderHeader },
                    new MySpecialOrder { ID = 2, Name = "CD", OrderLines = _orderLines, OrderHeader = _orderHeader }
                };
            }
예제 #2
0
            public ClientsController()
            {
                _orderHeader = new OrderHeader { ID = 3, Name = "header", OrderId = 1 };

                _orderLines = new[] { new OrderLine { ID = 2, Name = "abc", OrderId = 1 } };

                _myOrders = new[]
                {
                    new MyOrder { ID = 1, Name = "Book", OrderLines = _orderLines, OrderHeader = _orderHeader },
                    new MySpecialOrder { ID = 2, Name = "CD", OrderLines = _orderLines, OrderHeader = _orderHeader }
                };
            }