Ejemplo n.º 1
0
 public static Order getInstance(int orderId, string manufacturer, string model, bool airCon, bool alloys, LastId lastId)
 {
     return(new Order(orderId, manufacturer, model, airCon, alloys, lastId));
 }
Ejemplo n.º 2
0
 private Order(int orderId, string manufacturer, string model, bool airCon, bool alloys, LastId lastId)
 {
     if (orderId == 0)
     {
         this.orderId = lastId.getNextOrderId();
     }
     else
     {
         this.orderId = orderId;
     }
     this.manufacturer = manufacturer;
     this.model        = model;
     this.airCon       = airCon;
     this.alloys       = alloys;
 }