示例#1
0
        public static void Test()
        {
            Order order = new Order()
            {
                Items    = new List <OrderItem>(),
                Customer = new CustomerInfo()
                {
                    Email = "*****@*****.**", Phone = "123", Name = "123"
                }
            };

            order.Items.Add(new OrderItem()
            {
                Number = 10, Product = new Product()
                {
                    Name = "自行车", Price = 100
                }
            });
            order.Items.Add(new OrderItem()
            {
                Number = 1, Product = new Product()
                {
                    Name = "齿轮", Price = 100
                }
            });


            OrderExamineApproveManager approveFlows = OrderExamineApproveManager.CreateFlows();
        }
示例#2
0
        public static OrderExamineApproveManager CreateFlows()
        {
            OrderExamineApproveManager result = new OrderExamineApproveManager();

            Infomationer info = new Infomationer();

            result.Flows += info.CheckPrices;
            result.Flows += info.CheckNumber;

            return(result);
        }