Exemple #1
0
 public OrderBuilder Form(Func<OrderFormBuilder, OrderFormBuilder> form)
 {
     var inputInstance = new OrderFormBuilder();
     var resultPart = form.Invoke(inputInstance);
     var root = resultPart.GetOrderForm();
     root.OrderGroupId = root.OrderGroupId;
     root.OrderGroup = _order;
     _order.OrderForms.Add(root);
     return this;
 }
        public OrderBuilder Form(Func <OrderFormBuilder, OrderFormBuilder> form)
        {
            var inputInstance = new OrderFormBuilder();
            var resultPart    = form.Invoke(inputInstance);
            var root          = resultPart.GetOrderForm();

            root.OrderGroupId = root.OrderGroupId;
            root.OrderGroup   = _order;
            _order.OrderForms.Add(root);
            return(this);
        }